Sunday, April 12, 2015

Problem connecting to Amazon AWS EC2 Instance from Local

Most of the Amazon AWS EC2 beginners face the problem while connecting to Amazon EC2 instance from their local. The common error faced is “Disconnected : No supported authentication methods available (server sent :publickey) “

You would have already got the keypair from EC2 Management console and have used putty gen to generate private key file(PPK) but still an error is thrown. The reason is that the default user name is not correct.



The default user names are as follows,
  • Amazon Linux: ec2-user
  • Ubuntu: ubuntu
  • Debian : admin


Don’t forget to add a security group rule to allow port 80 and 443 inbound. It's done and you ll be able to connect to your EC2 instance now.


I was fighting with this issue for long time and got the help from stack-overflow to get it resolved. The question can be referred @ Stack Overflow

Tuesday, April 7, 2015

How to customize Attribution widget in blogger and remove “Powered by blogger” in the footer of your blog?

If we are using a blogger template , the normal footer text which we could see is "Powered by blogger". Only the option for appending the text will be provided normally , but there is a way to remove the default text and make it to our customized one.

Follow the below steps ,

1. Login to blogger and select template menu on left

2. Click Edit Template below the template shown




3. Click inside the HTML Codes shown and press Ctrl+F

4. Search for the code below,

         <b:widget id='Attribution1' locked='true' title='' type='Attribution'>

Replace it with the following code,

                  <b:widget id='Attribution1' locked='false' title='' type='Attribution'>


The change is that locked attribute is changed to false from true.

5. Search for the below code as well,

                   <b:section class='foot' id='footer-3' showaddelement='no'>

Replace it with the following code,

                  <b:section class='foot' id='footer-3' showaddelement='yes'>

6. Save the template

7. Click the layout menu on the left



8. You can find the attibution element at the bottom of your page

9. Click on edit. Now you will get the option remove in the popup which will appear



10. Click remove button.



The default text will be removed at the footer and you can add any text as you wish ! 

Sunday, April 5, 2015

Make your URL work with WWW Prefix on domain registered with Godaddy

The most common problem we face while using the website registration from Godaddy is that , it will work fine when we use www.testurl.in but it will throw an error when we access as testurl.in

One of the easy ways to fix this is to do domain forwarding. Follow the below steps,

1. Login to your Godaddy account
2. Click domains -> Manage my domains
3. Click your domain name listed there (www.testurl.in)
4. Under Settings tab , you will find something called forwarding.

5. Click Manage under forwarding -> Click Add forwarding

6. Add your forwarding url as www.testurl.in and select redirect type as 301(Permanent)




You are done :)

What is oAuth 2.0 ?

Almost every one of us is using services of Google, Microsoft, Facebook, Apple etc., every day, either directly or indirectly. We see in mos...