我有问题,sshd以某种方式忽略匹配块。 sshd的configuration是基本的。 你可以在这里find它: http : //pastebin.com/bNUYhQnx
我的目标是,除root以外的每个用户只能使用pubkey身份validation进行login。
但即使使用上面提到的configuration,我仍然可以用非root用户的密码login。
sshd的版本是:OpenSSH_5.5p1 Debian-6 + squeeze2,OpenSSL 0.9.8o 2010年6月1日
有人能给我一个提示什么是缺less的?
提前致谢。
有趣的是,虽然这个configuration可以工作,但我可以重现它。
但是,其他方式对我来说工作得很好:
PasswordAuthentication no # other configuration (...) Match User root PasswordAuthentication yes
它看起来像不运算符不像我们预期的那样。 奇怪。