Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The command I'm using is:

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

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

1 Answer 1

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
1  
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

 
discard

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.