感觉就像 RDP 连接到我的 Ubuntu 机器取决于天气、星星或月亮。有时它有效,有时无效。我尝试了在网上指南中找到的各种修复方法,包括:
- 从 ppa:martinx/xrdp-hwe-18.04 使用 RDP
- 运行 echo "gnome-session --session=ubuntu-2d" > .xsession
- 连接到 X11 RDP 会话,然后连接到正常 RDP 会话
- 将 RDP 添加到 ssl-cert 组
我已经清除了 RDP,重新安装,然后再次清除——但没有成功。
没有真正的错误消息 - 只是出现了问题并且它就在那里。
这是我在 Windows RDP 客户端中收到的错误消息:
以下是日志 xrdp.log 的输出:
[20190411-14:03:25] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.10 port 62096
[20190411-14:03:25] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.199 port 3389)
[20190411-14:03:25] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20190411-14:03:25] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20190411-14:03:25] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20190411-14:03:25] [DEBUG] TLSv1.2 enabled
[20190411-14:03:25] [DEBUG] TLSv1.1 enabled
[20190411-14:03:26] [DEBUG] TLSv1 enabled
[20190411-14:03:26] [DEBUG] Security layer: requested 11, selected 1
[20190411-14:03:26] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.199 port 3389)
[20190411-14:03:26] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.10 port 62098
[20190411-14:03:26] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.0.199 port 3389)
[20190411-14:03:26] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20190411-14:03:26] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20190411-14:03:26] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20190411-14:03:26] [DEBUG] TLSv1.2 enabled
[20190411-14:03:26] [DEBUG] TLSv1.1 enabled
[20190411-14:03:26] [DEBUG] TLSv1 enabled
[20190411-14:03:26] [DEBUG] Security layer: requested 11, selected 1
[20190411-14:03:26] [INFO ] connected client computer name: JOHN
[20190411-14:03:26] [INFO ] TLS connection established from ::ffff:192.168.0.10 port 62098: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20190411-14:03:26] [DEBUG] xrdp_0000059c_wm_login_mode_event_00000001
[20190411-14:03:26] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20190411-14:03:26] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20190411-14:03:43] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20190411-14:03:44] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20190411-14:03:44] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20190411-14:03:44] [DEBUG] return value from xrdp_mm_connect 0
[20190411-14:03:44] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20190411-14:03:44] [DEBUG] xrdp_wm_log_msg: started connecting
[20190411-14:03:47] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:03:51] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:03:54] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:03:58] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:01] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:05] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:08] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:12] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:15] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:19] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:22] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:26] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:29] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:33] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:36] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:40] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:43] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:47] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:50] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:54] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:04:57] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:01] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:04] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:08] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:11] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:15] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:18] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:22] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:26] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:29] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:33] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:36] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:40] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:43] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:47] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:50] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:54] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:05:57] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:01] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:04] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:08] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:11] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:15] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:18] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:22] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:25] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:29] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:32] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:36] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:39] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:43] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:46] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:50] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:53] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:06:57] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:07:00] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:07:04] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:07:07] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:07:11] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:07:14] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20190411-14:07:14] [DEBUG] Closed socket 19 (AF_UNIX)
[20190411-14:07:14] [DEBUG] xrdp_wm_log_msg: some problem
[20190411-14:07:14] [DEBUG] xrdp_mm_module_cleanup
[20190411-14:07:14] [DEBUG] Closed socket 18 (AF_INET6 ::ffff:127.0.0.1 port 32924)
答案1
再次,只是一个想法...也许你必须检查以下配置文件
/etc/X11/Xwrapper.config
并确保线路
允许用户=控制台
更改为允许的用户=任何人
日志中的错误可能表明只有控制台用户才能连接到 X 服务器
以下链接可能有助于调试您的问题
XRDP – 如何在 Ubuntu Gnome 17.04 上安装 – 简单方法
希望这能有所帮助,下次见
答案2
sudo apt install xserver-xorg-core
sudo apt install xorgxrdp
适用于 18.04.2 LTS。欢迎您。