Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default username for SSH EC2 Linux instance? [closed]

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 ?

like image 327
user1810868 Avatar asked Dec 11 '12 15:12

user1810868


People also ask

What is the default username for your Amazon Linux ec2 instance?

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 .

What is default ec2 username?

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).

How do you connect via ssh to a Linux ec2?

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.


1 Answers

For Amazon Linux, it's ec2-user

like image 146
rhetonik Avatar answered Sep 22 '22 07:09

rhetonik