内容简介:翻译自:https://stackoverflow.com/questions/4241197/how-to-disable-password-authentication-for-every-users-except-several
我想在标题中分享我的问题答案,我很快就找不到.
有很多主题如何禁用密码身份验证:
UsePam yes # it will not be used ChallengeResponseAuthentication no PasswordAuthentication no kbdInteractiveAutentication no
但没有主题如何为特定用户启用:
Match User myuser
PasswordAuthentication yes
KbdInteractiveAutentication yes
测试sshd配置的有用命令是:
sshd -T -C user=myuser,host=127.1,addr=127.1
请注意,“127.1”不适用于每个系统,因此您可能需要在此处粘贴127.0.0.1.
如果不是专门的密码验证,你可以强制使用pam_access.so并让/etc/security/access.conf看起来像这样:
+ : myuser : <ip/net here or ALL> - : ALL : ALL
翻译自:https://stackoverflow.com/questions/4241197/how-to-disable-password-authentication-for-every-users-except-several
以上所述就是小编给大家介绍的《openssh – 如何为除多个用户之外的所有用户禁用密码验证》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Practical JavaScript, DOM Scripting and Ajax Projects
Frank Zammetti / Apress / April 16, 2007 / $44.99
http://www.amazon.com/exec/obidos/tg/detail/-/1590598164/ Book Description Practical JavaScript, DOM, and Ajax Projects is ideal for web developers already experienced in JavaScript who want to ......一起来看看 《Practical JavaScript, DOM Scripting and Ajax Projects》 这本书的介绍吧!