Bug 1224

Summary: ssh-add man page does not fully describe -d option
Product: Portable OpenSSH Reporter: Andrew McCarthy <andrewmc-debian>
Component: DocumentationAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: trivial CC: djm
Priority: P3    
Version: -current   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1289    
Attachments:
Description Flags
Suggested patch for man page none

Description Andrew McCarthy 2006-09-03 04:36:15 AEST
As far as I understand the source, when using the -d option to ssh-add it looks for the public key rather than the private key to remove an identity. This should be documented. The man page should also explain that it will search for <filename>.pub as well while trying to find it.

Thanks!
Comment 1 Andrew McCarthy 2006-09-03 04:49:38 AEST
Created attachment 1180 [details]
Suggested patch for man page
Comment 2 Justin Lindberg 2007-01-31 08:40:53 AEDT
I stumbled upon this bug when I was trying to remove an identity
and I did not have the public key file available.

In fact, I consider it a bug that a key file needs to be
available when removing an identity.  There should be a way
to specify the identity to be removed without accessing a file.
What if I added an identity from a file system (on removable
storage) that is no longer available?

Currently, in this case, I have no choice but to remove all
identities.  There doesn't seem to be any technical reason
for this restriction.
Comment 3 Damien Miller 2007-06-12 17:41:48 AEST
Similar fix applied, it will be in OpenSSH 4.7 - thanks!
Comment 4 Damien Miller 2008-04-04 09:55:55 AEDT
Close resolved bugs after release.