OpenSSH8 默认是禁止root用户直接连链接的
1.查看sshd服务的状态,必须为开启状态。
2.查看selinux的状态,在/etc/sysconfig/selinux文件中更改selinux的状态为disabled关闭状态。
3.查看/etc/ssh/sshd_config配置
PermitRootLogin yes PubkeyAuthentication yes PasswordAuthentication yes
重启 systemctl restart sshd
从新连接测试一下