我有一个运行 Debian 10 的 Vultr VPS。这是一个新建的实例,没有防火墙。我已经安装了xfce
,xrdp
但无法通过 RDP 从 Windows 10 PC 连接到此机器。
首先我安装了 xfce:
apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
然后我安装了 xrdp:
apt install xrdp
检查 xrdp 状态显示:
root@vultr:~# systemctl status xrdp
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-09-07 10:36:13 UTC; 17min ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 2112 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
Process: 2120 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 2121 (xrdp)
Tasks: 1 (limit: 1137)
Memory: 1020.0K
CGroup: /system.slice/xrdp.service
└─2121 /usr/sbin/xrdp
Sep 07 10:36:12 vultr.guest systemd[1]: Starting xrdp daemon...
Sep 07 10:36:12 vultr.guest xrdp[2120]: (2120)(140273561200448)[DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
Sep 07 10:36:12 vultr.guest xrdp[2120]: (2120)(140273561200448)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
Sep 07 10:36:12 vultr.guest systemd[1]: xrdp.service: Can't open PID file /run/xrdp/xrdp.pid (yet?) after start: No such file or directory
Sep 07 10:36:13 vultr.guest systemd[1]: Started xrdp daemon.
Sep 07 10:36:14 vultr.guest xrdp[2121]: (2121)(140273561200448)[INFO ] starting xrdp with pid 2121
Sep 07 10:36:14 vultr.guest xrdp[2121]: (2121)(140273561200448)[INFO ] listening to port 3389 on 0.0.0.0
我究竟做错了什么?
答案1
我不知道 Debian 出了什么问题,但我使用 Ubuntu 创建了另一个 VPS,当我安装 GNOME 桌面和 xrdp 时,它运行良好。