AWS ssh access 'Permission denied (publickey)' issue

Now it's:

ssh -v -i ec2-keypair.pem ec2-user@[yourdnsaddress]

If you're using a Bitnami image, log in as 'bitnami'.

Seems obvious, but something I overlooked.


For Ubuntu instances:

chmod 600 ec2-keypair.pem
ssh -v -i ec2-keypair.pem [email protected]

For other instances, you might have to use ec2-user instead of ubuntu.

Most EC2 Linux images I've used only have the root user created by default.

See also: http://www.youtube.com/watch?v=WBro0TEAd7g


Canonical's releases use the user 'ubuntu' by default for anyone landing here with a ubuntu image that is coming up with the same problem.