Bug 3052 - Print key comment along with public key (-y flag)
Summary: Print key comment along with public key (-y flag)
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 8.0p1
Hardware: Other Linux
: P5 enhancement
Assignee: Damien Miller
URL:
Keywords:
Depends on:
Blocks: V_8_1
  Show dependency treegraph
 
Reported: 2019-08-06 08:22 AEST by dalonso
Modified: 2021-04-23 15:11 AEST (History)
2 users (show)

See Also:


Attachments
print key comment when printing pubkey from private (2.40 KB, patch)
2019-08-30 14:31 AEST, Damien Miller
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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