vim /etc/ssh/sshd_config

去掉PermitRootLogin yes 前面的#注释

修改 PasswordAuthentication no 为 PasswordAuthentication yes

重启ssh systemctl restart sshd.service

修改密码 passwd root

最后修改日期: 2020-04-30

作者