[Bug 2667] ssh-add does not display key comments for the first key added

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Mar 10 14:25:03 AEDT 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2667

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Damien Miller <djm at mindrot.org> ---
What's happening here is that the ed25519 key is a new-style OpenSSH
format private key that contains the comment where ssh-add can easily
get at it, and the RSA key is an olde-style PEM format that doesn't.

We could in theory go looking for the comment in the private key's
corresponding .pub file if it exists, but it complicates key loading
considerably - we'd need to find the file, read and parse it and check
that it matched the private key. I don't think we want to do this.

You could try converting your RSA key to a new-style one while
re-specifying the comment (ssh-keygen -opf /path -C "your comment").
The new key format offers better protection against passphrase cracking
too.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list