Search code examples
amazon-web-servicesubuntuamazon-ec2windows-8ubuntu-14.04

Disconnected: No supported authentication methods available (server > send: publickey)


I've launched an EC2 instance with Ubuntu 14 OS.

I'm trying to connect from a Windows 8 computer to my EC2 instance using PuTTY following the instructions, but when I click the Open button I receive the following error:

Disconnected: No supported authentication methods available (server send: publickey)

I'm quite sure I've made everything right according to the instructions (the ppk file etc).

This troubleshooting hasn't helped me because I have tried both ubuntu and root as username, e.g. [email protected]

I've also seen many questions on SO with the same error, but in all of them the author missed something that I have not.

I have really no idea what to do. Really hope someone will manage to help me.


Solution

  • I recommend trying another SSH client such as MobaXterm, it supports pem

    So you can run your command ssh -i /path/to/key.pem ubuntu@IP