FIX SSH ‘TOO MANY AUTHENTICATION FAILURES’
If you’re like me, you might have a lot of ssh keys installed and this might prevent you from logging into servers with the following message as a result:
“Too many authentication failures”.
As far as I understood this happens due to SSH trying each key on the client for logging and failing due to hitting the serverMaxAuthTries in the SSH server configuration. I use the following quick fix to work around this, by forcing SSH to use a password instead of a public key:
ssh -o PubkeyAuthentication=no username@hostname.com
I’m pretty sure there has to be a better, more durable solution for this issue, but the above fix allows you to at least gain access to your server again. Btw I use this on Linux (Ubuntu 10.04) with OpenSSH_5.3p1 Debian-3ubuntu4.

Thanks you save me some time
.ssh/config:
IdentitiesOnly yes
Try Try this solution.
HTH,
Patrick
Coooooool !
Edit (or create if missing) ~/.ssh/config and enter the following section in to it to specify which key-pair to use for a particular host machine:
Host alias_of_your_choice
User user_name
Hostname address_of_remote_machine
Port port_number_if_not_22
IdentifyFile ~/.ssh/name_or_private_key_file
The use of alias is extremely useful since ti will allow you to connect with ‘ssh alias_of_your_choice’ rather than ‘ssh -p port_number user_name@_address_of_remote_machine’.