root登录后
进入下面目录
/etc/ssh/sshd_config
修改
PermitRootLogin prohibit-password为
PermitRootLogin yes重启
systemctl restart sshd