29

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?

Tamara Koliada
  • 1,200
  • 2
  • 14
  • 31
Alon
  • 10,381
  • 23
  • 88
  • 152

2 Answers2

156

switch to root with:

sudo su -

Then run:

passwd ubuntu

It is going to prompt :

Enter new UNIX password:

So, set your password.

galoget
  • 722
  • 9
  • 15
Islam Salah
  • 1,691
  • 1
  • 6
  • 7
10

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.

galoget
  • 722
  • 9
  • 15
Kush Vyas
  • 5,813
  • 2
  • 26
  • 36