1.ubuntu 执行命令如下: sudo apt install xrdp sudo systemctl enable --now xrdp sudo ufw allow from any to any port 3389 proto tcp 2.cmd 输入 mstsc ,然后输入ubuntu账号密码即可