Linux证书登录,禁用密码

如果验证成功的话就可以关闭密码登陆方式了,

编辑/etc/ssh/sshd_config,

将PasswordAuthentication改为no,

ChallengeResponseAuthentication改为no,

不过需要重启sshd(service sshd restart)后才能生效。

原文地址:https://www.cnblogs.com/feiyun126/p/7426832.html