vim /etc/ssh/sshd_config
將PermitRootLogin 的值改爲yes
更改PermitEmptyPasswords爲
no
然後重啓ssh服務:service
ssh restart
如果以上還不行的話
試試下述方法:
1.sudo passwd
root設置root的密碼
vim /etc/ssh/sshd_config
將PermitRootLogin 的值改爲yes
更改PermitEmptyPasswords爲
no
然後重啓ssh服務:service
ssh restart
如果以上還不行的話
試試下述方法:
1.sudo passwd
root設置root的密碼