I'm running -current and notice that ssh prefers keys that have been
loaded into ssh-agent over those that are being specified on the
command line.
If I load 'keya' into the agent,
ssh-add ~/.ssh/keya
and then try to use 'keyb',
ssh -i ~/.ssh/keyb 192.0.43.10
then 'keyb' is ignored and 'keya' is used. This makes it harder to use
single purpose keys targeting the same server.
One way to force the right key is to unset SSH_AUTH_SOCK when running ssh,
SSH_AUTH_SOCK= ssh -i ~/.ssh/keyb 192.0.43.10
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?
Regards,
/Lars