Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

I am new to Amazon EC2 and trying to configure it. I have created the instances and trying to connect. I am getting the error as "Disconnected : No supported authentication methods available (server sent :publickey)".

I have got the keypair from EC2 Management console and have used putty gen to generate private key file(PPK).

Kindly assist to resolve.

Error screen

closed

1 Answer

+1 vote
by (18.2k points)
selected by
 
Best answer

Make sure you are using the right user name. There are different usernames for different EC2 instances.

  • Amazon Linux: ec2-user
  • Ubuntu: ubuntu
  • Debian: admin

For most of the other instances, you can use ec2-user.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
+1 vote
1 answer
asked Mar 1, 2020 in DevOps and Agile by chandra (29.3k points)

Browse Categories

...