首先用ifconfig看自己的ip地址,
然后检查自己的ssh是否打开:
输入ps -e | grep ssh 后,是否出现sshd,什么都没有出现说明没有安装。
安装方法:sudo apt-get install openssh-server 注:自己安装时报错,说一个软件被占用,reboot一次。
重新输入ps -e | grep ssh 检查一下
使用xshell远程连接,ip就是ifconfig 中ens网口对应的ip。
借鉴:https://blog.csdn.net/JiangHui1211/article/details/90407886