Page MenuHomeSolus

X11RDP Will not establish RDP Connection to host
Closed, ResolvedPublic

Description

X11 RDP Will not establish a session from any user, even if they are explicitly defined in /etc/xcrdp/sesman.ini, in the tsusers group or if the users are commented out. Log files are as follows

from xrdp.log

[20180212-20:03:12] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180212-20:03:12] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180212-20:03:12] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180212-20:03:12] [DEBUG] return value from xrdp_mm_connect 0
[20180212-20:03:12] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20180212-20:03:12] [DEBUG] xrdp_mm_module_cleanup
[20180212-20:03:12] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:40100)
[20180212-20:03:28] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180212-20:03:29] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180212-20:03:29] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180212-20:03:29] [DEBUG] return value from xrdp_mm_connect 0
[20180212-20:03:29] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20180212-20:03:29] [DEBUG] xrdp_mm_module_cleanup
[20180212-20:03:29] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:40102)
[20180212-20:04:52] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20180212-20:04:52] [DEBUG] Closed socket 12 (AF_INET 192.168.168.14:3389)
[20180212-20:04:52] [DEBUG] xrdp_mm_module_cleanup
[20180212-20:12:39] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20180212-20:12:39] [DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
[20180212-20:12:41] [INFO ] starting xrdp with pid 2369
[20180212-20:12:41] [INFO ] listening to port 3389 on 0.0.0.0
[20180212-20:13:41] [INFO ] Socket 12: AF_INET connection received from 192.168.168.3 port 52572
[20180212-20:13:41] [DEBUG] Closed socket 12 (AF_INET 192.168.168.14:3389)
[20180212-20:13:41] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20180212-20:13:41] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180212-20:13:41] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180212-20:13:41] [DEBUG] TLSv1.2 enabled
[20180212-20:13:41] [DEBUG] TLSv1.1 enabled
[20180212-20:13:41] [DEBUG] TLSv1 enabled
[20180212-20:13:41] [DEBUG] Security layer: requested 11, selected 1
[20180212-20:02:02] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20180212-20:02:02] [DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
[20180212-20:02:04] [INFO ] starting xrdp with pid 1502
[20180212-20:02:04] [INFO ] listening to port 3389 on 0.0.0.0
[20180212-20:02:52] [INFO ] Socket 12: AF_INET connection received from 192.168.168.3 port 51741
[20180212-20:02:52] [DEBUG] Closed socket 12 (AF_INET 192.168.168.14:3389)
[20180212-20:02:52] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20180212-20:02:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180212-20:02:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180212-20:02:52] [DEBUG] TLSv1.2 enabled
[20180212-20:02:52] [DEBUG] TLSv1.1 enabled
[20180212-20:02:52] [DEBUG] TLSv1 enabled
[20180212-20:02:52] [DEBUG] Security layer: requested 11, selected 1
[20180212-20:02:52] [DEBUG] Closed socket 12 (AF_INET 192.168.168.14:3389)
[20180212-20:02:54] [INFO ] Socket 12: AF_INET connection received from 192.168.168.3 port 51743
[20180212-20:02:54] [DEBUG] Closed socket 12 (AF_INET 192.168.168.14:3389)
[20180212-20:02:54] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20180212-20:02:54] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180212-20:02:54] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180212-20:02:54] [DEBUG] TLSv1.2 enabled
[20180212-20:02:54] [DEBUG] TLSv1.1 enabled
[20180212-20:02:54] [DEBUG] TLSv1 enabled
[20180212-20:02:54] [DEBUG] Security layer: requested 11, selected 1
[20180212-20:02:54] [INFO ] connected client computer name: REMOTEHOST
[20180212-20:02:54] [INFO ] TLS connection established from <REMOTEIP> port 51743: TLSv1.2 with cipher AES256-GCM$
[20180212-20:02:54] [DEBUG] xrdp_00000619_wm_login_mode_event_00000001
[20180212-20:02:54] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20180212-20:02:54] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local ke$

From xrdp-sesman.log

[20180212-20:02:02] [DEBUG] libscp initialized
[20180212-20:02:02] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.
[20180212-20:02:02] [INFO ] starting xrdp-sesman with pid 1500
[20180212-20:02:02] [DEBUG] Closed socket 5 (AF_INET 127.0.0.1:3350)
[20180212-20:02:02] [INFO ] listening to port 3350 on 127.0.0.1
[20180212-20:03:12] [INFO ] A connection received from 127.0.0.1 port 40100
[20180212-20:03:12] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:03:29] [INFO ] A connection received from 127.0.0.1 port 40102
[20180212-20:03:29] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:04:52] [INFO ] shutting down sesman 1
[20180212-20:04:52] [INFO ] shutting down sesman 1
[20180212-20:04:52] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20180212-20:12:39] [DEBUG] libscp initialized
[20180212-20:12:39] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.
[20180212-20:12:39] [INFO ] starting xrdp-sesman with pid 2367
[20180212-20:12:39] [DEBUG] Closed socket 5 (AF_INET 127.0.0.1:3350)
[20180212-20:12:39] [INFO ] listening to port 3350 on 127.0.0.1
[20180212-20:13:54] [INFO ] A connection received from 127.0.0.1 port 40104
[20180212-20:13:55] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:14:08] [INFO ] A connection received from 127.0.0.1 port 40106
[20180212-20:14:08] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:16:26] [INFO ] shutting down sesman 1
[20180212-20:16:26] [INFO ] shutting down sesman 1
[20180212-20:16:26] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20180212-20:16:35] [DEBUG] libscp initialized
[20180212-20:16:35] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.
[20180212-20:16:35] [INFO ] starting xrdp-sesman with pid 2911
[20180212-20:16:35] [DEBUG] Closed socket 5 (AF_INET 127.0.0.1:3350)
[20180212-20:16:35] [INFO ] listening to port 3350 on 127.0.0.1
[20180212-20:16:52] [INFO ] A connection received from 127.0.0.1 port 40108
[20180212-20:16:54] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:20:03] [INFO ] A connection received from 127.0.0.1 port 40110
[20180212-20:20:05] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:20:52] [INFO ] A connection received from 127.0.0.1 port 40112
[20180212-20:20:53] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:26:56] [INFO ] shutting down sesman 1
[20180212-20:26:56] [INFO ] shutting down sesman 1
[20180212-20:26:56] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20180212-20:26:56] [DEBUG] libscp initialized
[20180212-20:26:56] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.
[20180212-20:26:56] [INFO ] starting xrdp-sesman with pid 3465
[20180212-20:26:56] [DEBUG] Closed socket 5 (AF_INET 127.0.0.1:3350)
[20180212-20:26:56] [INFO ] listening to port 3350 on 127.0.0.1
[20180212-20:27:00] [INFO ] shutting down sesman 1
[20180212-20:27:00] [INFO ] shutting down sesman 1
[20180212-20:27:00] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20180212-20:27:00] [DEBUG] libscp initialized
[20180212-20:27:00] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.
[20180212-20:27:00] [INFO ] starting xrdp-sesman with pid 3474
[20180212-20:27:00] [DEBUG] Closed socket 5 (AF_INET 127.0.0.1:3350)
[20180212-20:27:00] [INFO ] listening to port 3350 on 127.0.0.1
[20180212-20:27:13] [INFO ] A connection received from 127.0.0.1 port 40114
[20180212-20:27:15] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180212-20:27:21] [INFO ] shutting down sesman 1
[20180212-20:27:21] [INFO ] shutting down sesman 1
[20180212-20:27:21] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20180212-20:27:21] [DEBUG] libscp initialized
[20180212-20:27:21] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.

Event Timeline

Does this still persist? There have been some large updates in the rdp stack since the report

JoshStrobl closed this task as Resolved.Jul 29 2018, 3:48 PM
JoshStrobl claimed this task.
JoshStrobl added a subscriber: JoshStrobl.

Closing due to lack of response.

tarkah added a subscriber: tarkah.Mar 26 2019, 12:03 AM

Can anyone confirm a working setup with xrdp / xorgxrdp and budgie-desktop? I cannot for the life of me get it to work. I am always getting "pam_authenticate failed: Authentication failure" from xrdp-sesman.

If anyone comes across this, I was able to get it working. See detailed guide at link.

Would be nice to see this working out of the box.