Too Many Authentication Failures?

Received disconnect from ########## port 22:2: Too many authentication failures

Add the IdentitiesOnly option to your config file

nano .ssh/config
Host <myhost>
   User <myusername>
   Hostname <myhostname>
   Port 22
   PreferredAuthentications publickey
   IdentityFile <path_to_key>
   IdentitiesOnly yes

Resources