| Summary: | ssh_config AddKeysToAgent doesn't set key name/path | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | alves.rjc | ||||||
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | enhancement | CC: | djm, git | ||||||
| Priority: | P5 | ||||||||
| Version: | 7.2p1 | ||||||||
| Hardware: | Other | ||||||||
| OS: | Linux | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 3079 | ||||||||
| Attachments: |
|
||||||||
|
Description
alves.rjc
2016-04-18 02:05:42 AEST
Created attachment 2885 [details]
probable fix
Could you please try this patch?
Hi Damien, The patch doesn't seem to affect anything. I get exactly the same output as before in both situations. Created attachment 2894 [details] 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 https://github.com/openssh/openssh-portable/blob/master/ssh-add.c#L261-L262, seems to have been added in https://github.com/openssh/openssh-portable/commit/2681cdb6e0de7c1af549dac37a9531af202b4434) The attached patch simply duplicate that behaviour (looking at sshkey_parse_private_fileblob_type, RSA key always have a 'NULL' comment). It seems to fix the issue for me, can you confirm? (In reply to Vincent Brillault from comment #3) > Created attachment 2894 [details] You have a small typo (dupplicate) in the commit message, otherwise the patch works great and fixes the issue. Can we get it reviewed and merged? Thanks, Renato A similar fix has been committed and will be in OpenSSH 8.2 closing resolved bugs as of 8.6p1 release |