开发者社区 问答 正文

linux怎么关闭SSH的密码认证呢?

linux怎么关闭SSH的密码认证呢?

展开
收起
游客yzrzs5mf6j7yy 2021-12-06 09:42:25 787 分享 版权
1 条回答
写回答
取消 提交回答
  • 既然已经有了SSH密钥,那么关闭SSH的密码认证就会更安全了。再次打开并编辑sshd_config,按如下设置:

    ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no

    2021-12-06 09:42:35
    赞同 展开评论