[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 Apr 28 14:13:25 AEST 2017


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

--- Comment #3 from Damien Miller <djm at mindrot.org> ---
I can't replicate that behaviour with either 7.2p2 or -current.

If I create my RSA key as an old-style key I get output that matches
yours.

[djm at djm .ssh]$ ssh-keygen -t rsa -C comment -N '' -qf ~/.ssh/id_rsa
[djm at djm .ssh]$ ssh-keygen -t ed25519 -C comment -N '' -qf
~/.ssh/id_ed25519
[djm at djm .ssh]$ ssh-add
Identity added: /home/djm/.ssh/id_rsa (/home/djm/.ssh/id_rsa)
Identity added: /home/djm/.ssh/id_ed25519 (comment)

If I create it as a new-style key then I see the expected output:

[djm at djm .ssh]$ ssh-add -D
All identities removed.
[djm at djm .ssh]$ ssh-keygen -ot rsa -C comment -N '' -qf ~/.ssh/id_rsa
/home/djm/.ssh/id_rsa already exists.
Overwrite (y/n)? y
[djm at djm .ssh]$ ssh-add 
Identity added: /home/djm/.ssh/id_rsa (comment)
Identity added: /home/djm/.ssh/id_ed25519 (comment)

What version OpenSSH are you using? Did you compile from source or are
you using a vendor package.

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


More information about the openssh-bugs mailing list