我在 Windows 7 计算机上尝试通过 Windows 远程桌面访问 RHEL7 系统。
直到今天,我(和我部门的其他人)已经能够使用 xrdp 登录到 RHEL 机器。
今天 xrdp 突然开始拒绝连接。我可以看到绿色背景的登录屏幕,但它拒绝了凭据(这些都很好)。
我可以 ping 到服务器,通过 putty 连接并使用 filezilla,但远程桌面连接拒绝会话登录。
我也尝试通过远程桌面连接到另一台 CENTOS 机器,并且运行正常。
有任何想法吗?
编辑:
~/.xsession 错误:
gnome-session-is-accelerated: llvmpipe detected.
/var/log/xrdp.log:
[20171031-13:55:53] [DEBUG] TLSv1.2 enabled
[20171031-13:55:53] [DEBUG] TLSv1.1 enabled
[20171031-13:55:53] [DEBUG] TLSv1 enabled
[20171031-13:55:53] [DEBUG] Security layer: requested 3, selected 1
[20171031-13:55:53] [INFO ] connected client computer name: SPENATE7
[20171031-13:55:53] [INFO ] TLS connection established from 192.168.197.176 port 51321: TLSv1.2 with cipher AES256-GCM-SHA384
[20171031-13:55:53] [DEBUG] xrdp_00007c0e_wm_login_mode_event_00000001
[20171031-13:55:53] [INFO ] Loading keymap file /etc/xrdp/km-0000040a.ini
[20171031-13:55:53] [WARN ] local keymap file for 0x0000040a found and doesn't match built in keymap, using local keymap file
[20171031-13:55:58] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20171031-13:55:59] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20171031-13:55:59] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20171031-13:55:59] [DEBUG] return value from xrdp_mm_connect 0
[20171031-13:56:05] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20171031-13:56:05] [DEBUG] xrdp_mm_module_cleanup
[20171031-13:56:05] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:46890)
/var/log/xrdp-sesman.log:
[20171031-12:58:20] [ERROR] X server -- no display in range is available
[20171031-12:58:20] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20171031-13:01:28] [INFO ] shutting down sesman 1
[20171031-13:01:28] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20171031-13:01:29] [CORE ] shutting down log subsystem...
[20171031-13:01:29] [DEBUG] libscp initialized
[20171031-13:01:29] [INFO ] starting xrdp-sesman with pid 14292
[20171031-13:01:29] [INFO ] listening to port 3350 on 127.0.0.1
[20171031-13:01:41] [INFO ] A connection received from 127.0.0.1 port 35854
[20171031-13:01:41] [INFO ] ++ created session (access granted): username sanpen, ip 192.168.197.176:60904 - socket: 12
[20171031-13:01:41] [INFO ] starting Xvnc session...
[20171031-13:01:41] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20171031-13:01:41] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20171031-13:01:42] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20171031-13:01:42] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5911)
[20171031-13:01:42] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6011)
[20171031-13:01:42] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6211)
答案1
我确实遇到了同样的问题,这就是我解决问题的方法,但我对这个解决方案并不满意。
你需要改变两者sesmain.in和sesman配置文件将字段MaxSessions
设置为比您已有的更大的数字。似乎有些会话没有以适当的方式释放。两个文件都在 中/etc/xrdp
。您需要 sudo 权限才能编辑它们。
答案2
远程桌面连接拒绝会话登录。
xRDP
将一些日志文件写入您的系统。我们建议您查看这些日志文件。这些日志文件可能会提供有关您遇到的问题的有用见解。您应该查看以下文件:
~/.xsession-errors /var/log/xrdp.log /var/log/xrdp-sesman.log
答案3
有 2 个值得注意的小警告。
- 确保用户名的大小写敏感性与最初配置的一致。我刚刚收到一张关于相同问题的票据,用户试图在这种情况下使用“Admin”而不是“admin”。
- 尝试使用 15 位或 16 位色彩深度而不是 24 位进行连接。
最终用户报告:
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait...
login failed for display 0
答案4
检查 /var/log/apt/history.log,这是今天早上(2019-01-10)升级的一部分
xrdp:amd64(0.6.1-2、0.6.1-2ubuntu0.1)
然后我降级了...
sudo apt-get 安装 xrdp=0.6.1-2
现在有效