是否可以在CentOS 5.7中启用密码validation或密钥validation? 我所能find的是将PasswordAuthentication设置为no,强制使用密钥…
谢谢
禁用PasswordAuthentication不会强制密钥,它会禁用密码authentication,如所宣传的。
PubkeyAuthentication确定是否允许密钥authentication。
因此,要直接回答您的问题,以下configuration允许使用密码或密钥身份validation:
PasswordAuthentication yes PubkeyAuthentication yes
你的意思是你想要这样的东西:
Match User user1 PasswordAuthentication no RSAAuthentication yes PubkeyAuthentication yes Match User user2 PasswordAuthentication yes RSAAuthentication no PubkeyAuthentication no