xrdp 没有监听端口 3389

xrdp 没有监听端口 3389
$ sudo netstat -plnt | grep rdp

tcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN      83971/xrdp-sesman

如您所见,xrdp 没有监听端口 3389。

$ tail -f /var/log/syslog

May  3 04:19:36 vmName systemd[1]: Starting LSB: disk temperature monitoring daemon...
May  3 04:19:36 vmName systemd[1]: Started LSB: disk temperature monitoring daemon.
May  3 04:19:37 vmName systemd[1]: Reloading.
May  3 04:19:37 vmName systemd[1]: Started ACPI event daemon.
May  3 04:19:37 vmName systemd[1]: Reloading.
May  3 04:19:37 vmName systemd[1]: Started ACPI event daemon.
May  3 04:19:37 vmName systemd[1]: Reloading.
May  3 04:19:37 vmName systemd[1]: Started ACPI event daemon.
May  3 04:24:08 vmName start_jupyterhub.sh[2210]: 04:24:08.613 [ConfigProxy] #033[32minfo#033[39m: 200 GET /api/routes
May  3 04:24:08 vmName start_jupyterhub.sh[2210]: [I 2020-05-03 04:24:08.613 JupyterHub proxy:319] Checking routes
May  3 04:29:08 vmName start_jupyterhub.sh[2210]: 04:29:08.613 [ConfigProxy] #033[32minfo#033[39m: 200 GET /api/routes
May  3 04:29:08 vmName start_jupyterhub.sh[2210]: [I 2020-05-03 04:29:08.613 JupyterHub proxy:319] Checking routes

$ telnet PUBLIC_IP 3389

Trying PUBLIC_IP...
telnet: Unable to connect to remote host: Connection refused

$ sudo systemctl status xrdp
● xrdp.service - LSB: Start xrdp and sesman daemons
   Loaded: loaded (/etc/init.d/xrdp; bad; vendor preset: enabled)
   Active: active (running) since Sun 2020-05-03 04:05:37 UTC; 14min ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/xrdp.service
           └─83971 /usr/sbin/xrdp-sesman

May 03 04:05:37 vmName systemd[1]: Starting LSB: Start xrdp and sesman daemons..
May 03 04:05:37 vmName xrdp[83956]:  * Starting Remote Desktop Protocol server
May 03 04:05:37 vmName xrdp[83956]:    ...done.
May 03 04:05:37 vmName systemd[1]: Started LSB: Start xrdp and sesman daemons.

我正在尝试与 Azure Cloud 上的 Linux VM 建立 RDP 连接。如上所示,我可以通过 ssh 进行连接。NSG(防火墙)允许此端口,但 RDP 未监听此端口。

以下是部分输出:

$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             multiport dports 3853
ACCEPT     tcp  --  anywhere             anywhere             multiport dports 3853
...
ACCEPT     tcp  --  anywhere             anywhere             multiport dports ldap
ACCEPT     tcp  --  anywhere             anywhere             multiport dports 3389
ACCEPT     tcp  --  anywhere             anywhere             multiport dports 3389
...
ACCEPT     tcp  --  anywhere             anywhere             multiport dports ldap
ACCEPT     tcp  --  anywhere             anywhere             multiport dports ldap
...
Chain FORWARD (policy DROP)
target     prot opt source               destination         
DOCKER-USER  all  --  anywhere             anywhere            
DOCKER-ISOLATION-STAGE-1  all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
DOCKER     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             multiport dports 3853

Chain DOCKER (1 references)
target     prot opt source               destination         

Chain DOCKER-ISOLATION-STAGE-1 (1 references)
target     prot opt source               destination         
DOCKER-ISOLATION-STAGE-2  all  --  anywhere             anywhere            
RETURN     all  --  anywhere             anywhere            

Chain DOCKER-ISOLATION-STAGE-2 (1 references)
target     prot opt source               destination         
DROP       all  --  anywhere             anywhere            
RETURN     all  --  anywhere             anywhere            

Chain DOCKER-USER (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

相关内容