zl程序教程

您现在的位置是:首页 >  后端

当前栏目

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

ssh密码密码 使用 通俗易懂 登陆 root 允许
2023-06-13 09:12:01 时间

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

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

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

重启ssh service sudo service ssh restart

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