Linux 使用密码登录sshd设置

元气满满
2025-07-29 / 0 评论 / 0 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2025年07月29日,已超过455天没有更新,若内容或图片失效,请留言反馈。

允许密码认证(关键配置)

PasswordAuthentication yes

允许 root 用户通过密码登录(可选,根据需求设置)

PermitRootLogin yes

确保以下参数未被禁用(默认通常为 yes,若被注释或设为 no 需修改)

ChallengeResponseAuthentication yes

重启sshd

systemctl restart sshd
0

评论 (0)

取消