Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

With OpenSSH, how can I log the fingerprints of the keys used for authentication?

I would like to log it in production, so it would be best if this wasn't just some debug setting or similar.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Yes, by setting LogLevel to VERBOSE, you would see logs like the following,

 sshd[1199]: Connection from 192.168.56.1 port 45811
 sshd[1199]: Found matching RSA key: XXXX
 sshd[1199]: Postponed publickey for root from 192.168.56.1 port 45811 ssh2 [preauth]
 sshd[1199]: Found matching RSA key: XXXX
 sshd[1199]: Accepted publickey for root from 192.168.56.1 port 45811 ssh2
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.