环境:
虚拟机下的:Ubantu18.04
远程连接工具:xshell
方法:
1.更新源列表
sudo apt-get update
2.安装openssh-client
sudo apt-get install openssh-client
3.安装openssh-server
sudo apt-get install openssh-server
4.启动ssh服务
sudo service ssh start
5.查看是否启动
sudo ps -e | grep ssh
6.查看IP ifconfig
如果命令没有发现,执行命令sudo apt install net-tools