新安裝的Ubuntu是沒有開啓SSH服務的,需要開啓openssh-server
# sudo apt-get install openssh-server
1.查看進程是否啓動
ps -e | grep ssh
2.啓動
/etc/init.d/ssh start
3.編輯權限vim /etc/ssh/sshd_config
4.重啓
sudo /etc/init.d/ssh restart
5.修改密碼
若前幾步做了還是不行出現如下
則需要重新設置密碼
sudo passwd root即可登陸