I'm doing some clean up on one of my servers and I have a bunch of keys in my .ssh/authorized_keys
The problem is I want to delete them but I'm not too sure if they are still even used. Is there a way to find out which keys have been used recently? I want to delete them if no one has logged in with them for over 3 months.
/var/log/auth.logbut that won't give you the key used. Related: http://askubuntu.com/questions/562833/check-which-ssh-key-was-used-to-login and http://unix.stackexchange.com/questions/15575/can-i-find-out-which-ssh-key-was-used-to-access-an-account – Jedi Jan 04 '17 at 17:42