Windows 시스템에서 Linux 시스템으로 xrdp를 RDP로 사용하려고 합니다(구체적으로 RDP 설정을 위해 Arch Linux wiki에서 언급한 xorg xrdp). 내 데스크톱 환경(xfce4)에 문제가 있어 RDP 연결이 종료되는 것 같습니다. 아래에 XRDP 및 XRDP-Sesman의 스니펫을 제공했습니다. 저는 SSH를 통해 로그인하고 Windows RDP 클라이언트에 연결을 시도할 때마다 Linux 상자에서 무슨 일이 일어나고 있는지 확인하기로 결정했습니다.
로그인 상자가 나타나고 로그인이 성공한 것 같습니다. 나는 다음 사항을 확인하는 것을 포함하여 다양한 솔루션을 시도했습니다.
.xsessions
추천라인xfce4-session
Xwrapper
모든 사용자가 연결할 수 있도록 설정- 나는
.xinitrc
처형했다startxfce4
.ini
파일에 연결 유지 타이머 설정
xrdp.log
[20190730-18:33:02] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[20190730-18:33:02] [ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan
[20190730-18:33:02] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:51792)
[20190730-18:33:02] [DEBUG] Closed socket 12 (AF_INET 10.64.5.120:3389)
[20190730-18:33:02] [DEBUG] xrdp_mm_module_cleanup
[20190730-18:33:02] [DEBUG] Closed socket 19 (AF_UNIX)
[20190730-18:33:02] [DEBUG] Closed socket 20 (AF_UNIX)
[20190730-18:33:23] [INFO ] Socket 12: AF_INET connection received from 10.64.27.2 port 33394
[20190730-18:33:23] [DEBUG] Closed socket 12 (AF_INET 10.64.5.120:3389)
[20190730-18:33:23] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20190730-18:33:23] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20190730-18:33:23] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20190730-18:33:23] [DEBUG] TLSv1.2 enabled
[20190730-18:33:23] [DEBUG] TLSv1.1 enabled
[20190730-18:33:23] [DEBUG] TLSv1 enabled
[20190730-18:33:23] [DEBUG] Security layer: requested 11, selected 1
[20190730-18:33:23] [DEBUG] Closed socket 12 (AF_INET 10.64.5.120:3389)
[20190730-18:33:25] [INFO ] Socket 12: AF_INET connection received from 10.64.27.2 port 45509
[20190730-18:33:25] [DEBUG] Closed socket 12 (AF_INET 10.64.5.120:3389)
[20190730-18:33:25] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20190730-18:33:25] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20190730-18:33:25] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20190730-18:33:25] [DEBUG] TLSv1.2 enabled
[20190730-18:33:25] [DEBUG] TLSv1.1 enabled
[20190730-18:33:25] [DEBUG] TLSv1 enabled
[20190730-18:33:25] [DEBUG] Security layer: requested 11, selected 1
[20190730-18:33:25] [INFO ] connected client computer name: DESKTOP-0C7KOCP
[20190730-18:33:25] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000
[20190730-18:33:25] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20190730-18:33:25] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20190730-18:33:25] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000
[20190730-18:33:25] [INFO ] TLS connection established from 10.64.27.2 port 45509: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20190730-18:33:25] [DEBUG] xrdp_00002b80_wm_login_mode_event_00000001
[20190730-18:33:25] [INFO ] Loading keymap file /etc/xrdp/km-00000809.ini
[20190730-18:33:25] [WARN ] local keymap file for 0x00000809 found and doesn't match built in keymap, using local keymap file
[20190730-18:33:31] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20190730-18:33:31] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20190730-18:33:31] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20190730-18:33:31] [DEBUG] return value from xrdp_mm_connect 0
[20190730-18:33:31] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20190730-18:33:31] [DEBUG] xrdp_wm_log_msg: started connecting
[20190730-18:33:32] [INFO ] lib_mod_log_peer: xrdp_pid=11136 connected to X11rdp_pid=11141 X11rdp_uid=1008 X11rdp_gid=1009 client_ip=10.64.27.2 client_port=45509
[20190730-18:33:32] [DEBUG] xrdp_wm_log_msg: connected ok
[20190730-18:33:36] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[20190730-18:33:36] [DEBUG] Closed socket 20 (AF_UNIX)
[20190730-18:33:40] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[20190730-18:33:40] [DEBUG] Closed socket 20 (AF_UNIX)
[20190730-18:33:44] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[20190730-18:33:44] [DEBUG] Closed socket 20 (AF_UNIX)
[20190730-18:33:48] [ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[20190730-18:33:48] [ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan
[20190730-18:33:48] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:52154)
[20190730-18:33:48] [DEBUG] Closed socket 12 (AF_INET 10.64.5.120:3389)
[20190730-18:33:48] [DEBUG] xrdp_mm_module_cleanup
[20190730-18:33:48] [DEBUG] Closed socket 19 (AF_UNIX)
[20190730-18:33:48] [DEBUG] Closed socket 20 (AF_UNIX)
xrdp-sesman.log
[20190730-18:32:31] [DEBUG] Closed socket 1 (AF_INET 127.0.0.1:3350)
[20190730-18:32:31] [INFO ] starting xrdp-sesman with pid 11093
[20190730-18:32:31] [INFO ] listening to port 3350 on 127.0.0.1
[20190730-18:32:46] [INFO ] A connection received from 127.0.0.1 port 51792
[20190730-18:32:46] [INFO ] ++ created session (access granted): username walker, ip 10.64.27.2:57868 - socket: 12
[20190730-18:32:46] [INFO ] starting Xorg session...
[20190730-18:32:46] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20190730-18:32:46] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20190730-18:32:46] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20190730-18:32:46] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20190730-18:32:46] [INFO ] calling auth_start_session from pid 11099
[20190730-18:32:46] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20190730-18:32:46] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20190730-18:32:46] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20190730-18:32:46] [CORE ] waiting for window manager (pid 11100) to exit
[20190730-18:32:46] [CORE ] window manager (pid 11100) did exit, cleaning up session
[20190730-18:32:46] [INFO ] calling auth_stop_session and auth_end from pid 11099
[20190730-18:32:46] [DEBUG] cleanup_sockets:
[20190730-18:32:46] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_10
[20190730-18:32:46] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdp_chansrv_socket_10
[20190730-18:32:46] [INFO ] ++ terminated session: username walker, display :10.0, session_pid 11099, ip 10.64.27.2:57868 - socket: 12
[20190730-18:33:31] [INFO ] A connection received from 127.0.0.1 port 52154
[20190730-18:33:31] [INFO ] ++ created session (access granted): username walker, ip 10.64.27.2:45509 - socket: 12
[20190730-18:33:31] [INFO ] starting Xorg session...
[20190730-18:33:31] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20190730-18:33:31] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20190730-18:33:31] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20190730-18:33:31] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20190730-18:33:31] [INFO ] calling auth_start_session from pid 11139
[20190730-18:33:32] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20190730-18:33:32] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20190730-18:33:32] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20190730-18:33:32] [CORE ] waiting for window manager (pid 11140) to exit
[20190730-18:33:32] [CORE ] window manager (pid 11140) did exit, cleaning up session
[20190730-18:33:32] [INFO ] calling auth_stop_session and auth_end from pid 11139
[20190730-18:33:32] [DEBUG] cleanup_sockets:
[20190730-18:33:32] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_10
[20190730-18:33:32] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20190730-18:33:32] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdpapi_10
[20190730-18:33:32] [INFO ] ++ terminated session: username walker, display :10.0, session_pid 11139, ip 10.64.27.2:45509 - socket: 12
나에게 해결책을 알려줄 수 있는 어떤 제안이라도 좋을 것입니다. 감사합니다!
답변1
어떤 면에서 변화xrdp.ini
allow_channels=false
반응?