Skip to content
MtrXTools

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

The client offered too many keys before the right one

Seen in OpenSSH client and server

The server disconnected because the client tried more authentication attempts than the server's MaxAuthTries allows.

Common causes

  • ssh-agent holds many keys and the client offers each one in turn before the correct key.
  • Repeated wrong passwords.

How to fix it

  1. Pin the key for that host in ~/.ssh/config: IdentityFile ~/.ssh/the_key plus IdentitiesOnly yes.
  2. Or on the command line: ssh -o IdentitiesOnly=yes -i ~/.ssh/the_key user@host.
  3. Remove unused keys from the agent (ssh-add -D, then add only what you need).

Got a different message? Paste it into the error explainer.

Related errors

All 31 Dev tools & SSH errors