5
如何为某些用户禁用使用密码的SSH登录?
在Linux(Debian Squeeze)上,我想禁用对某些用户(选定的组或除root以外的所有用户)使用密码的SSH登录。但是我不想禁用使用证书的登录。 编辑:非常感谢详细的答案!由于某些原因,这在我的服务器上不起作用: Match User !root PasswordAuthentication no ...但是很容易被替换 PasswordAuthentication no Match User root PasswordAuthentication yes