passwd root 先设置root密码
1.vi服务器端的/etc/ssh/sshd_config
2.找到#PermitRootLogin no将其修改为PermitRootLogin yes
3.把PasswordAuthentication设成yes
4.重启ssh服务
passwd root 先设置root密码
1.vi服务器端的/etc/ssh/sshd_config
2.找到#PermitRootLogin no将其修改为PermitRootLogin yes
3.把PasswordAuthentication设成yes
4.重启ssh服务