View Issue Details

IDProjectCategoryView StatusLast Update
0005973Kali Linux[All Projects] Kali Package Bugpublic2020-01-04 01:15
Reportergimmx Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version2019.4 
Target VersionFixed in Version 
Summary0005973: Cannot Login Thru Remote Desktop Using XRDP
DescriptionCannot connect to Kali from a Windows machine using Remote Desktop and XRDP.
Steps To ReproduceInstall xrdp on kali
On Windows 10, open Remote Desktop Connection and use IP of Kali box.
Remote desktop connection initially succeeds, showing "Login to kali"
Select Session (Xord), enter user/pass.

After clicking OK, remote desktop window freezes but no errors are shown. No connection is established.
Additional InformationAttempted to login with root and a new user.

Activities

gimmx

2020-01-03 21:16

reporter  

xrdp.log.txt (7,136 bytes)
20200103-16:09:52] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.186.1 port 10450
[20200103-16:09:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.186.131 port 3389)         
[20200103-16:09:52] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)                                                 
[20200103-16:09:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem                                      
[20200103-16:09:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem                                          
[20200103-16:09:52] [DEBUG] TLSv1.3 enabled                                                                          
[20200103-16:09:52] [DEBUG] TLSv1.2 enabled                                                                                           
[20200103-16:09:52] [DEBUG] Security layer: requested 11, selected 1                                                                  
[20200103-16:09:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.186.131 port 3389)                                              
[20200103-16:09:53] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.186.1 port 10451                                          
[20200103-16:09:53] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.186.131 port 3389)                                                          
[20200103-16:09:53] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)                                                                                   
[20200103-16:09:53] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem                                                                           
[20200103-16:09:53] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem                                                                                   
[20200103-16:09:53] [DEBUG] TLSv1.3 enabled
[20200103-16:09:53] [DEBUG] TLSv1.2 enabled
[20200103-16:09:53] [DEBUG] Security layer: requested 11, selected 1
[20200103-16:09:53] [INFO ] connected client computer name: WINDOWHOST
[20200103-16:09:53] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20200103-16:09:53] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20200103-16:09:53] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20200103-16:09:53] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20200103-16:09:53] [INFO ] TLS connection established from ::ffff:192.168.186.1 port 10451: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20200103-16:09:53] [DEBUG] xrdp_00000bd3_wm_login_mode_event_00000001
[20200103-16:09:53] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200103-16:09:53] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200103-16:09:58] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-16:10:02] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57094)
[20200103-16:10:06] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57106)
[20200103-16:10:10] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57118)
[20200103-16:10:15] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20200103-16:10:15] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57130)
[20200103-16:10:15] [DEBUG] return value from xrdp_mm_connect 1
[20200103-16:10:15] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-16:10:19] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57142)
[20200103-16:10:23] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57154)
[20200103-16:10:27] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57166)
[20200103-16:10:31] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20200103-16:10:31] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57178)
[20200103-16:10:31] [DEBUG] return value from xrdp_mm_connect 1
[20200103-16:10:31] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-16:10:35] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57190)
[20200103-16:10:39] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57202)
[20200103-16:10:43] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57214)
[20200103-16:10:47] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20200103-16:10:47] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57226)
[20200103-16:10:47] [DEBUG] return value from xrdp_mm_connect 1
[20200103-16:10:47] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-16:10:51] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57238)
[20200103-16:10:55] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57250)
[20200103-16:10:59] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57262)
[20200103-16:11:03] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20200103-16:11:03] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57274)
[20200103-16:11:03] [DEBUG] return value from xrdp_mm_connect 1
[20200103-16:11:11] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-16:11:15] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57286)
[20200103-16:11:19] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57298)
[20200103-16:11:23] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57310)
[20200103-16:11:27] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20200103-16:11:27] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57322)
[20200103-16:11:27] [DEBUG] return value from xrdp_mm_connect 1
[20200103-16:11:27] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-16:11:31] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57334)
[20200103-16:11:35] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57346)
[20200103-16:11:39] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57358)
[20200103-16:11:43] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20200103-16:11:43] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57370)
[20200103-16:11:43] [DEBUG] return value from xrdp_mm_connect 1
[20200103-16:12:16] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-16:12:20] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57382)
[20200103-16:12:24] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57394)
[20200103-16:12:28] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57406)
[20200103-16:12:33] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20200103-16:12:33] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 57418)
[20200103-16:12:33] [DEBUG] return value from xrdp_mm_connect 1
[20200103-16:12:33] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.186.131 port 3389)
[20200103-16:12:33] [DEBUG] xrdp_mm_module_cleanup
xrdp.log.txt (7,136 bytes)

IPv4v6

2020-01-03 21:47

reporter   ~0011801

Check the file /etc/X11/Xwrapper.config

set allowed_users to anybody

gimmx

2020-01-04 01:15

reporter   ~0011802

Configured using dpkg-reconfigure xserver-xorg-legacy.

Login is successful but nothing displays after login. Just the same blank teal green background.

Is there a step I missed? So far all I've done from a fresh image is:

apt-get update && apt-get upgrade
apt-get install xrdp
systemctl enable xrdp
reboot

Now added X11 command but not working still.

xrdp.log-2.txt (927 bytes)
[20200103-20:12:33] [INFO ] Non-TLS connection established from ::ffff:192.168.186.1 port 11043: encrypted with standard RDP security
[20200103-20:12:34] [DEBUG] xrdp_00000452_wm_login_mode_event_00000001
[20200103-20:12:34] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20200103-20:12:34] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20200103-20:12:40] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200103-20:12:41] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200103-20:12:41] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200103-20:12:41] [DEBUG] return value from xrdp_mm_connect 0
[20200103-20:12:41] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20200103-20:12:41] [DEBUG] xrdp_wm_log_msg: started connecting
[20200103-20:12:44] [DEBUG] Closed socket 17 (AF_UNIX)
xrdp.log-2.txt (927 bytes)

Issue History

Date Modified Username Field Change
2020-01-03 21:16 gimmx New Issue
2020-01-03 21:16 gimmx File Added: xrdp.log.txt
2020-01-03 21:47 IPv4v6 Note Added: 0011801
2020-01-04 01:15 gimmx File Added: xrdp.log-2.txt
2020-01-04 01:15 gimmx Note Added: 0011802