Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EC2 Ubuntu 14 default password

I have an EC2 instace running Ubuntu 14 which I regularly connect to using SSH.

Now I'm trying to connect to this instance using Remote Desktop from Windows, as shown here.

In the Login to xrdp form, I typed "ubuntu" as the username, but I don't know what the password is. I've never messed with the password and never needed it. I have tried both "ubuntu" and "" (blank) but got the same result:

xrdp_mm_process_login_response:login failed

Does anyone know what the default password of Ubuntu on EC2 is?

If it is either "Ubuntu" or "" then what causes the problem?

like image 742
Alon Avatar asked Aug 03 '18 07:08

Alon


People also ask

What is the default password of AWS EC2 ubuntu?

There is no password for the ubuntu user on the official Ubuntu AMIs. You can not ssh in with a password. You must associate an ssh keypair name when you start the instance if you want to ssh in to the instance.

What is the default password of ubuntu VM?

There is no default user (and therefore no default password) on Ubuntu.

What is default ubuntu root password?

By default, in Ubuntu, the root account has no password set.


2 Answers

switch to root with:

sudo su -

Then run:

passwd ubuntu

It is going to prompt :

Enter new UNIX password:

So, set your password.

like image 133
Islam Salah Avatar answered Oct 29 '22 08:10

Islam Salah


Not a solution to be precise, but an alternative solution is to login via SSH and create a new sudo user with password.

Then use that user to login :)

Edit: EC2 used SSH keypair authentication for user not password authentication for the user ubuntu (default).

Set the password for your current logged in user using the command, passwd.

like image 8
Kush Vyas Avatar answered Oct 29 '22 08:10

Kush Vyas