Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log improvement: name the key #246

Open
M95D opened this issue Aug 20, 2023 · 0 comments
Open

Log improvement: name the key #246

M95D opened this issue Aug 20, 2023 · 0 comments

Comments

@M95D
Copy link
Contributor

M95D commented Aug 20, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants