Gentoo Archives: gentoo-user

From: Hilco Wijbenga <hilco.wijbenga@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] ssh-agent & RSA
Date: Mon, 11 May 2009 05:18:15
Message-Id: e95b15950905102218h774ba135q38985514ed45b727@mail.gmail.com
1 Hi all,
2
3 I'm running ssh-agent so I only have to type my passphrase once. At
4 least that was the plan. I'm trying to use an RSA key instead of DSA.
5 This does not seem to please ssh-agent. It seems to just look for
6 id_dsa and ignore the id_rsa.
7
8 (a) If I create a DSA key then it finds that and ignores the RSA key;
9 (b) if I delete the DSA key so that there is only an RSA key then
10 ssh-agent warns about the missing id_dsa and gives up;
11 (c) if I give the DSA an empty passphrase then ssh-agent is happy but
12 still ignores the RSA key.
13
14 I can't find anything in man ssh-add or man ssh-agent about this
15 behaviour. The man files says it looks for both files but so far I beg
16 to differ. :-) There don't seem to be any config files for ssh-agent?
17
18 Other things I've tried:
19
20 1. State "explicitely" in ssh-config to only use RSA:
21
22 Host *
23 IdentitiesOnly yes
24 IdentityFile ~/.ssh/id_rsa
25 Protocol 2
26
27 Ssh-agent is not impressed. (Not too surprising as this file applies
28 to ssh, not ssh-agent, but it was worth a try.)
29
30 2. ssh-add -D ; ssh-add ~/.ssh/id_rsa
31
32 This is completely ignored. Ssh-agent simply behaves as in a, b, and c
33 (and, for a and c, puts the DSA key right back in the list).
34
35 I'm out of ideas. :-( Could anyone offer a suggestion? Does anyone
36 have ssh-agent working with an RSA key?
37
38 Please note that using a DSA key works. In that case ssh-agent finds
39 the key, asks for a passphrase and from then on I can use the key
40 without typing the passphrase. So I believe that I have set things up
41 correctly. Also note that I can use the RSA key, it's just that I have
42 to type the passphrase every time.
43
44 Cheers,
45 Hilco

Replies

Subject Author
Re: [gentoo-user] ssh-agent & RSA Etaoin Shrdlu <shrdlu@×××××××××××××.org>
Re: [gentoo-user] ssh-agent & RSA Philipp Riegger <lists@××××××××××××.de>