如果验证成功的话就可以关闭密码登陆方式了,
编辑/etc/ssh/sshd_config,
将PasswordAuthentication改为no,
ChallengeResponseAuthentication改为no,
不过需要重启sshd(service sshd restart)后才能生效。
如果验证成功的话就可以关闭密码登陆方式了,
编辑/etc/ssh/sshd_config,
将PasswordAuthentication改为no,
ChallengeResponseAuthentication改为no,
不过需要重启sshd(service sshd restart)后才能生效。
转载于:https://www.cnblogs.com/feiyun126/p/7426832.html