1.vi /etc/ssh/sshd_config 修改以下两个参数的值为:
#允许使用密码登录
PasswordAuthentication yes
#允许root认证登录,这一项可有可无
PermitRootLogin yes
2、重启sshd
systemctl restart sshd
————————————————
版权声明:本文为CSDN博主「tan诺」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_34787935/article/details/105651493