[xshell connection to ubuntu]
使用ubuntu 20.04
1.检查目前ssh工具
dpkg -l | grep ssh
2.安装ssh server
sudo apt-get install openssh-server
3.确认目前ip
hostname -I
4.检查ssh是否为启用 启用则可以连线
sudo systemctl status ssh
5.启动
sudo systemctl enable ssh
sudo systemctl start ssh