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?
1 Answer
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
-
Perfect. Knowing that,
ssh -i mykey.pem [email protected]
got me in.– amacleodJul 17, 2014 at 23:01