XRDP 已停止工作

XRDP 已停止工作

我的 Ubuntu Desktop 22.04.4 LTS 丢失了 XRDP 访问权限,我不知道如何解决它。XRDP 服务正在运行,XRDP 日志中没有错误。

netstat -an | grep "LISTEN " | grep ":3389" 
tcp6       0      0 :::3389                 :::*                    LISTEN

对于 XRDP 来说,本地一切正常。UFW 已关闭。我认为 iptables 阻止了它,但无法找出原因。我为 3389 添加了例外,但仍然没有运气。iptable 列表可以在这里找到: https://pastebin.com/yAK1b0Fj

以下是最近的日志:/var/log/xrdp.log

[20240423-16:35:44] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240423-16:35:44] [INFO ] listening to port 3389 on 0.0.0.0
[20240423-16:35:44] [INFO ] xrdp_listen_pp done
[20240423-16:35:46] [INFO ] starting xrdp with pid 7789
[20240423-16:35:46] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240423-16:35:46] [INFO ] listening to port 3389 on 0.0.0.0
[20240423-16:35:46] [INFO ] xrdp_listen_pp done
[20240423-16:36:52] [INFO ] Received termination signal, stopping the server accept new connections thread
[20240423-16:36:52] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240423-16:36:52] [INFO ] listening to port 3389 on 0.0.0.0
[20240423-16:36:52] [INFO ] xrdp_listen_pp done
[20240423-16:36:54] [INFO ] starting xrdp with pid 7961
[20240423-16:36:54] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240423-16:36:54] [INFO ] listening to port 3389 on 0.0.0.0
[20240423-16:36:54] [INFO ] xrdp_listen_pp done
[20240424-09:34:24] [INFO ] Received termination signal, stopping the server accept new connections thread
[20240424-09:38:39] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240424-09:38:39] [INFO ] listening to port 3389 on 0.0.0.0
[20240424-09:38:39] [INFO ] xrdp_listen_pp done
[20240424-09:38:41] [INFO ] starting xrdp with pid 953
[20240424-09:38:41] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240424-09:38:41] [INFO ] listening to port 3389 on 0.0.0.0
[20240424-09:38:41] [INFO ] xrdp_listen_pp done
[20240424-09:40:47] [INFO ] Received termination signal, stopping the server accept new connections thread
[20240424-09:51:10] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240424-09:51:10] [INFO ] listening to port 3389 on 0.0.0.0
[20240424-09:51:10] [INFO ] xrdp_listen_pp done
[20240424-09:51:12] [INFO ] starting xrdp with pid 966
[20240424-09:51:12] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240424-09:51:12] [INFO ] listening to port 3389 on 0.0.0.0
[20240424-09:51:12] [INFO ] xrdp_listen_pp done

~/.xsession-errors
Xsession: X session started for *** at Tue Apr 23 16:37:21 UTC 2024
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting DISPLAY=:3
localuser:*** being added to access control list
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
dbus-update-activation-environment: setting VNCDESKTOP=Ubuntu-Desktop-***:3 (***)
dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
dbus-update-activation-environment: setting USER=***
dbus-update-activation-environment: setting SSH_CLIENT=85.255.26.116 17280 22
dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11
dbus-update-activation-environment: setting SHLVL=1
dbus-update-activation-environment: setting MOTD_SHOWN=pam
dbus-update-activation-environment: setting HOME=/home/***
dbus-update-activation-environment: setting SSH_TTY=/dev/pts/0
dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
dbus-update-activation-environment: setting IM_CONFIG_PHASE=1
dbus-update-activation-environment: setting LOGNAME=***
dbus-update-activation-environment: setting GTK_IM_MODULE=ibus
dbus-update-activation-environment: setting XDG_SESSION_CLASS=user
dbus-update-activation-environment: setting TERM=xterm


/var/log/xrdp-sesman.log
[20240423-16:35:44] [INFO ] starting xrdp-sesman with pid 7779
[20240423-16:36:52] [INFO ] shutting down sesman 1
[20240423-16:36:52] [INFO ] starting xrdp-sesman with pid 7951
[20240424-09:34:25] [INFO ] shutting down sesman 1
[20240424-09:38:39] [INFO ] starting xrdp-sesman with pid 897
[20240424-09:40:47] [INFO ] shutting down sesman 1
[20240424-09:51:10] [INFO ] starting xrdp-sesman with pid 926

我已经在 Azure 中部署并配置了这台机器。它被交给开发人员来运行 Docker 容器。

我正在同一 LAN 上测试 Windows VM 的 RDP。可以 ping 通它并通过 SSH 连接到它,但 RDP 不再起作用。

非常感谢您的帮助。如果您需要更多详细信息,请告诉我。

相关内容