xrdp session: Login failed for display 0

19

4

I have just installed xrdp on my CentOs 7 following the steps in this article but could get as far as inputing 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

Posted 2016-11-07T18:35:15.303

Reputation: 191

Answers

7

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

Posted 2016-11-07T18:35:15.303

Reputation: 71

1On.a related note, I've had Ubuntu VMs in Microsoft Azure that were getting this error and resetting the admin users password for the VM through the Azure Portal to what it was already supposed to be fixed the issue. There seems to be an issue that sometimes the password gets messed up somehow with Ubuntu?... – Chris Pietschmann – 2019-02-14T16:56:13.263

@ChrisPietschmann I had exactly the same problem today. Thanks for the idea to try via Azure Portal. For those who need more details, you can open the VM resource and click the Reset password link in the Support + troubleshooting section. Then, select 'Reset password' and give the username you're using and a new password. – Timo Salomäki – 2019-02-16T12:36:06.740

4

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.

Diego Tercero

Posted 2016-11-07T18:35:15.303

Reputation: 141