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

No comments:

Post a Comment

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...