1.首先再终端里面输入 ip addr 其中 inet 192.168.xxx.xx就是本机的ip 2.安装SSH服务 sudo apt install openssh-server 3.打开xshell 建立连接