[Bug 2564] ssh_config AddKeysToAgent doesn't set key name/path

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Nov 23 09:30:29 AEDT 2016


Vincent Brillault <git at lerya.net> changed:

           What    |Removed                     |Added
                 CC|                            |git at lerya.net

--- Comment #3 from Vincent Brillault <git at lerya.net> ---
Created attachment 2894
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2894&action=edit
AddKeysToAgent: Use filename when comment is empty

I took a look at this bug by chance and I think I found the 'issue':
ssh-add has a check verifying if the 'comment' of the key is NULL or
contains only '\0' and replace it with the filename in that case (see
seems to have been added in

The attached patch simply duplicate that behaviour (looking at
sshkey_parse_private_fileblob_type, RSA key always have a 'NULL'
It seems to fix the issue for me, can you confirm?

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