Celeb Glow
general | March 05, 2026

xrdp session: Login failed for display 0

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?

3

3 Answers

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.

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 :

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.

2

I agree with @Lukas that it it 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.