Re: Selecting specific key from agent

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Thursday 21 January 2016, William Faulk wrote:
> There are cases when a user might have multiple keys in ssh-agent,
> but wants to use a specific one. Unless I'm mistaken, this is
> currently impossible.

You can do that with option "IdentityFile", see "man ssh_config".
Either specified with -o or IMO better in ~/.ssh/config like my example 
here:

Host gcc?? gcc??? gcc*.fsffrance.org
        IdentityFile /home/rudi/.ssh/gccfarm_rudi_dsa
        IdentitiesOnly=yes
        PasswordAuthentication no

Host * !gcc?? !gcc??? !gcc*.fsffrance.org
        IdentityFile /home/rudi/.ssh/id_ecdsa

cu,
Rudi
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux