Windows远程Ubuntu

1.开启SSH服务

# 查看是否安装openssh
dpkg -l|grep -i openssh-server
# 如果没有安装
sudo apt install openssh-server
# 确认
systemctl status sshd
sudo apt install net-tools
netstat -luntp|grep -i 22

2.安装图形化

sudo apt update
# 如果安装的是desktop版,那么下面的命令不需要安装任何包
sudo apt install ubuntu-desktop

3.安装xrdp

sudo apt install xrdp
sudo systemctl status xrdp
sudo systemctl enable xrdp

4.将xrdp用户加入组

sudo adduser xrdp ssl-cert 
sudo systemctl restart xrdp

5.重启系统

6.连接

windows按win+r然后输入mstsc,输入ubuntu的IP地址即可连接

posted @ 2022-11-05 14:32  monkey6  阅读(128)  评论(0编辑  收藏  举报