2009/5/11 Etaoin Shrdlu <shr...@unlimitedmail.org>:
> On Monday 11 May 2009, 07:18, Hilco Wijbenga wrote:
>
>> 2. ssh-add -D ; ssh-add ~/.ssh/id_rsa
>
> 3. mv ~/.ssh/id_rsa ~/.ssh/id_dsa

No, I had not tried that. :-) Exactly like that it doesn't work but if
I do a copy instead of a move then, yes, it works.

Ssh-agent finds the DSA key (still completely ignores the RSA key) in
both cases but SSH can't use it unless the RSA key is there so copying
"works". Somehow SSH is able to reuse the passphrase I typed for the
DSA key when the RSA key is used. Very strange.

> Seriously, did you try running ssh-add without arguments? Acrroding to
> the man, "When run without arguments, it adds the files ~/.ssh/id_rsa,
> ~/.ssh/id_dsa and ~/.ssh/identity".

:-) Yes, *that* I had tried ... many times. I had read the same which
lead me to believe this should work.

> It wors for me with an RSA key, anyway:
>
> $ ls .ssh/
> id_rsa       id_rsa.pub  known_hosts
> $ eval $(ssh-agent)
> Agent pid 22390
> $ ssh-add .ssh/id_rsa
> Identity added: .ssh/id_rsa (.ssh/id_rsa)

This works for me too but afterwards the key is completely ignored.
What happens if you do this and then restart the shell? Or better yet,
what happens if you logout completely and then log back in? For me,
the RSA key is completely ignored.

Does ssh-agent really ask you for a passphrase when starting a shell?
Or at least list the RSA key? For me it's only the DSA key that is
listed by ssh-agent (when it starts) and it's only for the DSA key
that ssh-agent asks for a passphrase. Note, that ssh-add -L still
lists the RSA key too!

> Did you try generating a new RSA key (just to see if it can be added)?

Yep, and no it doesn't make any difference. I even tried the default
bit length instead of -b 1536 that I normally use.

Reply via email to