允许密码认证(关键配置)
PasswordAuthentication yes允许 root 用户通过密码登录(可选,根据需求设置)
PermitRootLogin yes确保以下参数未被禁用(默认通常为 yes,若被注释或设为 no 需修改)
ChallengeResponseAuthentication yes重启sshd
systemctl restart sshd PasswordAuthentication yesPermitRootLogin yesChallengeResponseAuthentication yessystemctl restart sshd
评论 (0)