openssh uses agent despite IdentitiesOnly yes -> Bug?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


In my ssh_config, I set IdentityFile and IdentitiesOnly yes and
ForwardAgent no.

ssh uses this key but it still queries the agent! But it shouldn't do
that; I explicitely supply the key I want.

The reason why this is super problematic is that I have a special agent
that locks itself after some inactivity and requires to re-enter the

I realize I could unset SSH_AUTH_SOCK but this is also error prone
because the variable is usually set.

Is this a bug or am I missing something?
In particular, for that is IdentitiesOnly for if not for that?


PS: OS is Windows with MSYS and/or cygwin but should generally apply to
OpenSSH in general

Site Timeline