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

I recently became responsible for administering several Amazon Web Services Elastic Cloud Computing instances, some of which run Ubuntu and some of which run Amazon Linux. I have the key pair as a .pem file. What is the username I should use when connecting via SSH?

share|improve this question
up vote 5 down vote accepted

It is different for different distributions. The default user for Amazon Linux is ec2-user.

The default user for Ubuntu is ubuntu.

This is documented at amazon:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

share|improve this answer
    
Perfect. Knowing that, ssh -i mykey.pem ec2-user@myinstance.amazonaws.com got me in. – amacleod Jul 17 '14 at 23:01

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.