Bug 2939 - Public key debug printout
Summary: Public key debug printout
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 7.9p1
Hardware: All All
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_8_0
  Show dependency treegraph
 
Reported: 2018-12-06 08:17 AEDT by Andrew Somerville
Modified: 2023-01-13 13:56 AEDT (History)
2 users (show)

See Also:


Attachments
Patch adding debug feature printing the public key (999 bytes, patch)
2018-12-06 08:17 AEDT, Andrew Somerville
no flags Details | Diff
base64 and log key blob early (1.09 KB, patch)
2018-12-07 14:24 AEDT, Damien Miller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Somerville 2018-12-06 08:17:09 AEDT
Created attachment 3209 [details]
Patch adding debug feature printing the public key

When debugging and when performing forensic analysis it can be helpful to print out the full public key.

This patch provides that functionality when debug level set to 1 or more.

Same patch embodied in github pull request here:

https://github.com/openssh/openssh-portable/pull/112
Comment 1 Damien Miller 2018-12-07 14:24:22 AEDT
Created attachment 3211 [details]
base64 and log key blob early

I think doing it a little earlier would be useful as it would allow debugging of problems with the key itself. Since we already have the key blob, we can just base64 encode that.

BTW I think debug2() is a better log level for this
Comment 2 Andrew Somerville 2018-12-07 14:36:08 AEDT
Great! Even better!
Comment 3 Damien Miller 2019-01-22 22:26:32 AEDT
This is committed and will be in OpenSSH 8.0
Comment 4 Andrew Somerville 2019-01-23 01:49:49 AEDT
Wonderful! Thank you!
Comment 5 Damien Miller 2021-04-23 14:55:00 AEST
closing resolved bugs as of 8.6p1 release