1、更新资料列表
###sudo apt-get update
2、安装openssh-server
###sudo apt-get install openssh-server
3、查看ssh服务是否启动
已启动
4、若未启动可以输入
###sudo service ssh start
启动服务
5、查看IP地址
###sudo ifconfig
注意:若出现command not found,则是我们未安装ifconfig,输入
###sudo apt install net-tools进行安装
6、安装成功后重新###sudo ifconfig查看inet就是我们的IP地址
7、Xshell配置
原文:https://www.cnblogs.com/wxxmy/p/11762470.html