Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...