logging the public key

Frank Mohr f_mohr at yahoo.de
Sat Feb 5 09:03:53 EST 2011


Hi,

On 02/04/2011 05:44 PM, Anthony R Fletcher wrote:
> Can openssh log which public key, as listed in the authorized keys file,
> was used to log in? If so, how?

There where several patches on the list to log the key comment,
but they where not included in openssh.

Without patching, you can run the sshd with LogLevel=VERBOSE.
This will log the fingerprint of the key used for authentication.
(With "ssh-keygen -l -f authorized_keys" you get all fingerprints
of the public keys in the file)

Frank
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 


More information about the openssh-unix-dev mailing list