How to log in to your new Linux instance

When you have launched your new instance and made it available for ssh you want to login.
The username is different depending on the Linux flavor you are using but you will always use the keypair and not a password.

This is the ssh command you will use is you login from a Linux client.

# ssh -l UserName -i /path/to/my-keypair.pem

Here is a list of the user names for each Linux dist.

Linux flavor User
CentOS 6 cloud-user
CentOS 7 centos
CoreOS core
Fedora fedora
Redhat cloud-user
Ubuntu ubuntu
Debian debian
Heat instances ec2-user

When using Heat to deploy instances the user name will be ec2-user instead.


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request



Article is closed for comments.