The ssh-add support for trying the same password again was only added in openssh 2.9, so anyone using earlier versions or commercial ssh won't have it at all. The support in openssh, afaik is pretty primative, it only retries the previous password once, so if you have more than one password you'd have to manually list them in the right order.
In addition, ssh-add will always ask you for the password, even if the keys are already added.
I might be mistaken, but I don't see what it adds
to the functionality of
ssh-add. What I use in my
~/.profile seems to do the same thing. (And yes,
my passphrases are the same for both
~/.ssh/identity and ~/.ssh/id_dsa and I only have to
enter the passphrase once)
if [ "$SSH_AGENT_PID" == "" ]
ssh-add ~/.ssh/identity ~/.ssh/id_dsa
trap "kill $SSH_AGENT_PID" 0
echo "ssh-agent already running.."
An open, cross-platform journaling program.
A scientific plotting package.