0 votes
1 view
in AWS by (11.7k 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


1 Answer

+1 vote
by (18.6k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !