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 1


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:



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .