SSH Config 允许使用root密码登陆 PermitRootLogin[通俗易懂]

2022-09-06 11:47:10 浏览数 (3)

大家好,又见面了,我是你们的朋友全栈君。

问题:我用ssh连接服务器的时候,如果不设置密钥登陆,就会登陆失败,没有办法通过密码登陆 解决:首先设置允许通过密码登陆,设置PasswordAuthentication 为yes

设置在/etc/ssh/sshd_config中设置PermitRootLogin为yes

重启ssh service sudo service ssh restart

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/134722.html原文链接:https://javaforall.cn

0 人点赞