Selecting specific key from agent

Christian Weisgerber naddy at mips.inka.de
Fri Jan 22 02:11:02 AEDT 2016


On 2016-01-21, Ruediger Meier <sweet_f_a at gmx.de> 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".

That assumes that the key files are locally available.

If you are on host A and want to connect to B, it is perfectly
possible to have keys in the agent that were added on another host C.

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the openssh-unix-dev mailing list