How to fix ssh too many authentication failures.

6 July 20212 min read

Fix too many authentication failures ssh error

  • Increase the MaxAuthTries on the server (definitively an option, but I don’t recommend it)
  • Edit the ~/.ssh/config (on the client) and add IdentitiesOnly blocks so that a connection to a specific host only tries the associated key
  • Force non-key authentication, e.g.: ssh -o PubkeyAuthentication=no romain@hostname.com