75

I have just installed xrdp on my CentOs 7 following the steps in this article but could get as far as inputting my user name and password.

Here's a screenshot of the error that I get after trying to log in:

screenshot

The xrdp-sesman.log file says:

[20161107-20:51:39] [INFO ] listening to port 3350 on 127.0.0.1

[20161107-20:51:56] [INFO ] A connection received from: 127.0.0.1 port 41103

[20161107-20:51:57] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)

and nothing else. I have no idea how to debug this.

Could someone please point me in the right direction?

ambushed
  • 853
  • 1
  • 6
  • 7

6 Answers6

39

It is likely that you did not set the username/password correctly.

The session manager tries to use your username/password to unlock the screen. When the username/password are incorrect you get the login failed for display 0 message.

Lukas
  • 506
  • 5
  • 3
10

I had a lot of trouble with the exact same problem desribed here. I started just installing the gnome-desktop and the xrdp packages.

I realized that I also needed to install a vnc server. I followed everything as described in the following article :

https://peteris.rocks/blog/remote-desktop-and-vnc-on-ubuntu-server/

I finally could connect to my Ubuntu 17.10 VM hosted on Azure from a Win7 desktop using RDP.

Hope that article helps you as it did for me.

3

I agree with @Lukas that it is likely that your username/password is not correct. In my case, my companies domain got added in front of the user account (domain\user), while the lab machine was configured to login as user without domain.

F1iX
  • 219
0

I had the same issue when accessing a virtual machine in Azure. After two days beating with my head against the screen, the following worked for me:

  • Change the password of the user, restart and try again.

Seems unlikely, but it did work for me.

f4d0
  • 233
0

Thanks to Lukas's answer pointed out the cause as incorrect password

In my case, I have to set a good password for sudo passwd $USER to get it working - I used short password, and cannot remmina desktop connect to it

Nam G VU
  • 12,548
0

Usually this is because a wrong username/password.

If you use RDP for multiple remote machines with different different username/password, and you have saved the username/password on you Windows 10 machine, only one set of username/password will actually be saved. This means the saved username/password only works for the machines that use those exact username/password. The other machines will output login failed for display 0, and you need to manually enter the username/password for those machines.

nlite
  • 71