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的密码