dropbear icon indicating copy to clipboard operation
dropbear copied to clipboard

Log improvement: name the key

Open M95D opened this issue 2 years ago • 0 comments

Currently, the log appears as: Sun Aug 20 20:46:04 2023 authpriv.notice dropbear[24780]: Pubkey auth succeeded for [...] with ssh-rsa key SHA256:x5WgJCzOjJbYS/COOkMeO5t4GHxJhh89fFqtXUQ052Q from [...]

SHA256 can identify a key, but no human would search the hashes from the log to see which key was used. It would be best if the key was named.

Example: For this key:

cat /etc/dropbear/authorized_keys
ssh-rsa [...] name-of-the-key

Log to look like this: Sun Aug 20 20:46:04 2023 authpriv.notice dropbear[24780]: Pubkey auth succeeded for [...] with ssh-rsa key 'name-of-the-key' from [...]

Thank you for dropbear!

M95D avatar Aug 20 '23 17:08 M95D