Bug 2939

Summary: Public key debug printout
Product: Portable OpenSSH Reporter: Andrew Somerville <andy.somerville>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: andy.somerville, djm
Priority: P5    
Version: 7.9p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 2915    
Attachments:
Description Flags
Patch adding debug feature printing the public key
none
base64 and log key blob early none

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