Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
37
rated 0 times [  37] [ 0]  / answers: 1 / hits: 94475  / 3 Years ago, sat, july 31, 2021, 3:09:52

I just launched one of the Ubuntu Server AMI's on Amazon EC2.



I connect just fine, but I don't see anything to tell me the default login credentials.



login as: ?

More From » server

 Answers
5

On EC2 all the Ubuntu AMI's should be connected to like so:



$ ssh -i your-ssh-key.pem [email protected]



So you connect as the 'ubuntu' user using the ssh key you injected into the instance at launch (not a password). Once authenticated, you can issue password-less root commands with sudo.



(note: your ssh key might be .priv, or .pem, or no extension, this is just an example)



Here are also some handy resources about connecting to EC2 instances:



Launching an instance and choosing or creating a new SSH keypair: http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?LaunchInstance.html



Connecting with your ssh keypair:
http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/index.html?ConnectToInstanceLinux.html



What they don't mention there is that you connect to Ubuntu instances with the 'ubuntu' account and not root.


[#43394] Monday, August 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
edgehogight

Total Points: 272
Total Questions: 113
Total Answers: 99

Location: Northern Mariana Islands
Member since Sun, Jul 19, 2020
4 Years ago
edgehogight questions
Sat, Sep 11, 21, 22:09, 3 Years ago
Sat, Nov 6, 21, 19:48, 3 Years ago
Fri, Aug 26, 22, 09:37, 2 Years ago
;