How can I configure OpenSSH (5.9) to reject a given set of public keys?
I know I can remove the keys from each respective .ssh/authorized_keys
file, but I would like to do it on a server-wide basis. Imagine a scenario where a private key got compromised and I would like to prevent any user from putting the respective public key into their authorized_keys
(yes, they should still be allowed to edit theirs) and it working. To achieve that I will need something that works at the system level.
Have a look into the
RevokedKeys
configuration option for thesshd
. Seeman sshd_config
.