vim /etc/ssh/sshd_config
去掉PermitRootLogin yes 前面的#注释
修改 PasswordAuthentication no 为 PasswordAuthentication yes
重启ssh systemctl restart sshd.service
修改密码 passwd root
vim /etc/ssh/sshd_config
去掉PermitRootLogin yes 前面的#注释
修改 PasswordAuthentication no 为 PasswordAuthentication yes
重启ssh systemctl restart sshd.service
修改密码 passwd root