Bug 3052

Summary: Print key comment along with public key (-y flag)
Product: Portable OpenSSH Reporter: dalonso
Component: ssh-keygenAssignee: Damien Miller <djm>
Status: CLOSED FIXED    
Severity: enhancement CC: djm, dtucker
Priority: P5    
Version: 8.0p1   
Hardware: Other   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2988    
Attachments:
Description Flags
print key comment when printing pubkey from private dtucker: ok+

Description dalonso 2019-08-06 08:22:43 AEST
When printing the public key from a private key-file, using the flag -y of ssh-keygen, there is no way to print that key's comment, although in the new OpenSSH private key storage format the comment is saved inside the private key.

One possibility would be to print it when optionally adding the -v flag to the -y flag.
Comment 1 Damien Miller 2019-08-30 14:31:37 AEST
Created attachment 3315 [details]
print key comment when printing pubkey from private
Comment 2 Damien Miller 2019-09-02 10:17:40 AEST
this has been committed and will be in the OpenSSH 8.1 release soon.
Comment 3 Damien Miller 2021-04-23 15:11:00 AEST
closing resolved bugs as of 8.6p1 release