sudo apt-get update2.安装openssh-server
sudo apt-get install openssh-server3.查看ssh服务是否启动
sudo ps -e | grep ssh4.如果没有启动,启动ssh服务
sudo service ssh start5.查看IP地址
sudo ifconfig如果出现xshell无法输入密码的情况:
打开sshd_configvi /etc/ssh/sshd_config
将 PasswordAuthentication 的值由 no 改为 yes
PasswordAuthentication yes然后重启ssh
sudo service ssh restart



