Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The command I'm using is:

ssh -i /<path-to-your-key>/<your-key>.pem ec2-user@ec2-<your-domain>

Why would it STILL ask for a password when i have the key? It has you specify a key when you launch the instance; so if I use the key when I connect, it shouldn't ask for a password. I have no idea what it is because you're supposed to use the key to connect, right? What step have I overlooked?

share|improve this question
Can you actually login or not? Is it asking for a password or a passphrase? What does ssh -v -i ... output? – faker Aug 22 '13 at 16:19

The username that you log into the instance with depends on the AMI. The user ec2-user may not be correct. You will want to check the specifications for the particular AMI that you used to create the instance that you are connecting to.

share|improve this answer
YES! SunSparc thank you for the answer, precisely what the issue was! Since it was AWS I assumed you used ec2-user. Apparently root is the proper login. TY! – Jessen Sloan Aug 23 '13 at 2:17
You are very welcome. I usually use Ubuntu AMI's and oftentimes the username is "ubuntu", but not always. I am glad I could help. Feel free to click the checkmark. :) – SunSparc Aug 23 '13 at 17:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.