1 編輯vim /etc/ssh/sshd_config檔案
把permitrootlogin prohibit-password 添加#注釋掉
新添加:permitrootlogin yes
更改permitemptypasswords為 no
2 然後重新開機ssh服務
service ssh restart(或者執行:/etc/init.d/ssh restart)
3.重新開機伺服器
shutdown -r now
1 編輯vim /etc/ssh/sshd_config檔案
把permitrootlogin prohibit-password 添加#注釋掉
新添加:permitrootlogin yes
更改permitemptypasswords為 no
2 然後重新開機ssh服務
service ssh restart(或者執行:/etc/init.d/ssh restart)
3.重新開機伺服器
shutdown -r now