Bug 434

Summary: ssh-add doesn't always add all identities to ssh-agent
Product: Portable OpenSSH Reporter: Dale R. Worley <worley>
Component: ssh-addAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WORKSFORME    
Severity: minor    
Priority: P2    
Version: -current   
Hardware: ix86   
OS: Linux   

Description Dale R. Worley 2002-11-12 04:41:19 AEDT
RedHat package:  openssh-clients-3.1p1-5

OpenSSH version (as reported by ssh -v):
	OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090600f

Symptom:

When using ssh-add to add identities to the ssh-agent, and when using
it as an X windows application, ssh-add acts incorrectly when a bad
passphrase is entered initially:  ssh-add correctly reports that the
passphrase is bad and then correctly prompts for the passphrase again.
But when I then enter the correct password, only one of my two
identities is added to the ssh-agent, as is attested by ssh-add -l
afterward.

My configuration:

My two identies are stored in ~/.ssh/id_rsa and ~/.ssh/id_dsa, and
both use the same passphrase.  When I initially enter a bad
passphrase, only id_dsa is added to the ssh-agent.  When I enter the
correct passphrase the first time, both ~/.ssh/id_dsa and ~/.ssh/id_rsa
are added (in that order, if that makes any difference).

Workaround:

In many cases the user can work around this problem by aborting ssh-add,
then restarting it and entering the correct password the first time.
Comment 1 Damien Miller 2003-01-03 15:06:32 AEDT
Can't replicate - please retry with the most recent version (reopen this bus if
necessary).
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED