Bug 434 - ssh-add doesn't always add all identities to ssh-agent
Summary: ssh-add doesn't always add all identities to ssh-agent
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-add (show other bugs)
Version: -current
Hardware: ix86 Linux
: P2 minor
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-12 04:41 AEDT by Dale R. Worley
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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