Hi,

This is weird and I don't think it's related to keychain. I'm able to load
multiple keys of the same type without issues. I don't have a sid
environment right now to see if I can reproduce the issue there. Can you
please verify that both RSA keys are different and not the same key with
different file names. Because in that case keychain will only load one.
I'll try to setup a SID environment to test there.

 * keychain 2.7.1 ~ http://www.funtoo.org
 * Found existing ssh-agent: 2880
 * ssh-agent: All identities removed.
 * Adding 4 ssh key(s): /home/paks/.ssh/id_dsa /home/paks/.ssh/id_rsa
/home/paks/.ssh/id_dsa2 /home/paks/.ssh/id_rsa2
Enter passphrase for /home/paks/.ssh/id_dsa:
 * ssh-add: Identities added: /home/paks/.ssh/id_dsa /home/paks/.ssh/id_rsa
/home/paks/.ssh/id_dsa2 /home/paks/.ssh/id_rsa2

ssh-add -l
1024 00:33:8d:a6:70:55:17:71:e8:82:82:e9:e8:76:b8:90 /home/paks/.ssh/id_dsa
(DSA)
1024 25:81:46:9e:cd:67:5a:99:94:9c:e8:ba:ef:26:65:a2 /home/paks/.ssh/id_rsa
(RSA)
1024 f3:37:ac:bf:e0:0d:c8:38:a0:49:97:db:25:4d:7f:02
/home/paks/.ssh/id_dsa2 (DSA)
2048 77:35:15:e1:f1:d8:0b:47:e2:42:95:57:f0:e4:66:24
/home/paks/.ssh/id_rsa2 (RSA)


Bye
Cesar
--


On Tue, May 15, 2012 at 8:13 AM, Ryan Kavanagh <r...@debian.org> wrote:

> Package: keychain
> Version: 2.7.1-1
> Severity: wishlist
> Tags: upstream
>
> Please support multiple RSA, ECDSA, etc. ssh keys. For example, I have
> two RSA keys, but keychain will only load the first. I then have to
> manually add the second with ssh-add. In my .zshrc:
>
>    keychain id_rsa id_rsa.lambda id_ecdsa
>    keychain -Q ${GPGKEY} ${GPGKEY1}
>    [ -z "$HOSTNAME" ] && HOSTNAME=`uname -n`
>    [ -f $HOME/.keychain/$HOSTNAME-sh ] &&
>           . $HOME/.keychain/$HOSTNAME-sh
>    [ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] &&
>           . $HOME/.keychain/$HOSTNAME-sh-gpg
>
> on start (usually prompts for passphrase(s), but I don't want to ruin
> existing sessions by killing my agents to show the prompt):
>
>  * keychain 2.7.1 ~ http://www.funtoo.org
>  * Found existing ssh-agent: 3087
>  * Found existing gpg-agent: 5435
>  * Known ssh key: /home/ryan/.ssh/id_rsa
>  * Known ssh key: /home/ryan/.ssh/id_ecdsa
>
> but then output of ssh-add -l:
>
> 8192 ca:48:02:4a:2e:ee:2a:80:83:a9:fd:d6:a2:dd:5e:45
> /home/ryan/.ssh/id_rsa (RSA)
> 521 8c:cd:93:ca:55:65:e0:48:bc:c8:3e:aa:f0:16:14:d0
> /home/ryan/.ssh/id_ecdsa (ECDSA)
>
> I have tried renaming id_rsa.lambda to id_lambda with no luck.
>
> -- System Information:
> Debian Release: wheezy/sid
>  APT prefers unstable
>  APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: i386 (i686)
>
> Kernel: Linux 3.2.0-2-686-pae (SMP w/4 CPU cores)
> Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) (ignored:
> LC_ALL set to es_ES.UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages keychain depends on:
> ii  grep                         2.11-3
> ii  openssh-client [ssh-client]  1:5.9p1-5
>
> keychain recommends no packages.
>
> Versions of packages keychain suggests:
> ii  gnupg-agent                2.0.19-1
> ii  ksshaskpass [ssh-askpass]  0.5.3-1+b1
> ii  kwalletcli [ssh-askpass]   2.11-2
>
> -- no debconf information
>

Reply via email to