On Thu, May 16, 2013 at 01:11:43PM +0300, Lars Nooden wrote:
> but is there a better way to get ssh to use only the key specified on the
> comand line besides that or leaving them out of the agent in the first
> place?
IdentitiesOnly? from ssh_config(5):
IdentitiesOnly
Specifies that ssh(1) should only use the authentication identity
files configured in the ssh_config files, even if ssh-agent(1) or
a PKCS11Provider offers more identities. The argument to this
keyword must be ``yes'' or ``no''. This option is intended for
situations where ssh-agent offers many different identities. The
default is ``no''.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.