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

编辑/etc/ssh/sshd_config,

将PasswordAuthentication改为no,

ChallengeResponseAuthentication改为no,

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

posted on 2017-08-25 10:34  网络终结者  阅读(411)  评论(0编辑  收藏  举报