Page 1 of 1

unable to connect to centos 7 server using rdp

Posted: 2020/06/09 10:43:48
by bolo28
Noob Alert! But I have a similar issue.
I can access Centos 7.7 Server via Xrdp as root, NO PROBLEM.
However when I try to access via another user, even admin I get:

"connecting to sesman ip127.0.0.1 port 3350
sesman connect ok
sending login infor to sesman, please wait...
login failed for display 0"


Possibly related, VNC SERVER returns the following error from CLI:

Any assistance very much appreciated

vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-06-09 06:07:22 EDT; 8s ago
Process: 26512 ExecStart=/sbin/runuser -l my_user -c /usr/bin/vncserver %i -geometry 1280x1024 (code=exited, status=1/FAILURE)
Process: 26507 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Main PID: 26512 (code=exited, status=1/FAILURE)


XRDP LOG
[20200608-19:38:00] [INFO ] Socket 12: AF_INET connection received from 99.###.###.### port 60762
[20200608-19:38:00] [DEBUG] Closed socket 12 (AF_INET 10.10.10.3:3389)
[20200608-19:38:00] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20200608-19:38:00] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200608-19:38:00] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200608-19:38:00] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200608-19:38:00] [DEBUG] TLSv1.2 enabled
[20200608-19:38:00] [DEBUG] Security layer: requested 11, selected 1
[20200608-19:38:00] [INFO ] connected client computer name: bm-host-001
[20200608-19:38:00] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20200608-19:38:00] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20200608-19:38:00] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20200608-19:38:00] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20200608-19:38:00] [INFO ] TLS connection established from 99.###.###.### port 60762: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20200608-19:38:00] [DEBUG] xrdp_00003671_wm_login_mode_event_00000001
[20200608-19:38:00] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200608-19:38:00] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200608-19:38:00] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200608-19:38:00] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200608-19:38:00] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200608-19:38:00] [DEBUG] return value from xrdp_mm_connect 0
[20200608-19:38:03] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20200608-19:38:03] [DEBUG] xrdp_mm_module_cleanup
[20200608-19:38:03] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:57494)
[20200608-19:38:11] [DEBUG] Closed socket 12 (AF_INET 10.10.10.3:3389)
[20200608-19:38:11] [DEBUG] xrdp_mm_module_cleanup
[20200608-19:38:24] [INFO ] Socket 12: AF_INET connection received from 99.###.###.### port 60851
[20200608-19:38:24] [DEBUG] Closed socket 12 (AF_INET 10.10.10.3:3389)
[20200608-19:38:24] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20200608-19:38:24] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200608-19:38:24] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200608-19:38:24] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200608-19:38:24] [DEBUG] TLSv1.2 enabled
[20200608-19:38:24] [DEBUG] Security layer: requested 11, selected 1
[20200608-19:38:24] [INFO ] connected client computer name: bm-host-001
[20200608-19:38:24] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20200608-19:38:24] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20200608-19:38:24] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20200608-19:38:24] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20200608-19:38:24] [INFO ] TLS connection established from 99.###.###.### port 60851: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20200608-19:38:24] [DEBUG] xrdp_000036b4_wm_login_mode_event_00000001
[20200608-19:38:24] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200608-19:38:24] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200608-19:38:24] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200608-19:38:24] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200608-19:38:24] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200608-19:38:24] [DEBUG] return value from xrdp_mm_connect 0
[20200608-19:38:26] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20200608-19:38:26] [DEBUG] xrdp_mm_module_cleanup
[20200608-19:38:26] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:57496)
[20200608-19:38:33] [DEBUG] Closed socket 12 (AF_INET 10.10.10.3:3389)
[20200608-19:38:33] [DEBUG] xrdp_mm_module_cleanup
[20200608-19:38:44] [INFO ] Socket 12: AF_INET connection received from 99.###.###.### port 60875
[20200608-19:38:44] [DEBUG] Closed socket 12 (AF_INET 10.10.10.3:3389)
[20200608-19:38:44] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20200608-19:38:44] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200608-19:38:44] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200608-19:38:44] [WARN ] TLSv1.3 enabled by config, but not supported by system OpenSSL
[20200608-19:38:44] [DEBUG] TLSv1.2 enabled
[20200608-19:38:44] [DEBUG] Security layer: requested 11, selected 1
[20200608-19:38:44] [INFO ] connected client computer name: bm-host-001
[20200608-19:38:44] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20200608-19:38:44] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20200608-19:38:44] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20200608-19:38:44] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20200608-19:38:44] [INFO ] TLS connection established from 99.###.###.### port 60875: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20200608-19:38:44] [DEBUG] xrdp_000036ea_wm_login_mode_event_00000001
[20200608-19:38:44] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200608-19:38:44] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200608-19:38:44] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200608-19:38:44] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200608-19:38:44] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200608-19:38:44] [DEBUG] return value from xrdp_mm_connect 0
[20200608-19:38:46] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20200608-19:38:46] [DEBUG] xrdp_mm_module_cleanup
[20200608-19:38:46] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:57504)
[20200608-19:38:51] [DEBUG] Closed socket 12 (AF_INET 10.10.10.3:3389)
[20200608-19:38:51] [DEBUG] xrdp_mm_module_cleanup