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

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

1 Answer 1

up vote 4 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.