What is the default user name for the SSH EC2 amazon Linux instance. I have an old instance and I forgot the username. Can anybody help ?
The default user name is determined by the AMI that was specified when you launched the instance. For Amazon Linux 2 or the Amazon Linux AMI, the user name is ec2-user . For a CentOS AMI, the user name is centos or ec2-user . For a Debian AMI, the user name is admin .
For Amazon EC2 Linux instances, the default user name is ec2-user. The public key is stored on the target instance (the instance that the user is requesting access to) in the ec2-user home directory (~ec2-user/. ssh/authorized_keys).
To connect from the Amazon EC2 consoleOpen the Amazon EC2 console. In the left navigation pane, choose Instances and select the instance to which to connect. Choose Connect. On the Connect To Your Instance page, choose EC2 Instance Connect (browser-based SSH connection), Connect.
For Amazon Linux, it's ec2-user
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With