How to choose keys in keychain access

keychainssh

I would like keychain access to store all my keys and passwords for my ssh accesses.

However, if I store too many keys, I get "Too Many Authentication Failures" since SSH will try to send all keys and passwords.

Is there a way to choose which key or password to send?

Best Answer

Put your per-server SSH-configuration into ~/.ssh/config like this:

Host useKeyOnly.net
user sshuser 
Identityfile ~/.ssh/mykey1
IdentitiesOnly yes

Host usePasswordOnly.org
PubkeyAuthentication no
Port 53221
user root