Unable to SSH "Too many authentication failures" error before entering password
I receive a "Too many authentication failures" error before I even get a chance to enter my SSH password
Are you receiving this "Too many authentication failures" error BEFORE entering your password?
Received disconnect from 104.207.228.95 port 22:2: Too many authentication failures
If you're seeing the above error before you even have a chance to enter your password, then there's an issue going on with your local machine.
If you're unable to SSH into your sandbox, you're not seeing a password prompt, and you're seeing the "Too many authentication failures" error, it's most likely caused by the number of saved ssh keys on your local machine.
Having more than a couple of saved public ssh keys on your local machine can cause SSH to
offer three or more ssh keys to our servers before giving you the opportunity to enter the password we provided to you.
The easiest fix* is to tell SSH to not attempt to authenticate with your saved keys.
Try adding the following parameter to your SSH command in your terminal:
-o PubkeyAuthentication=no
Altogether, it would look like this:
ssh -o PubkeyAuthentication=no [email protected]
Where "
uniqueSshUsername" will be replaced by the username you were given when you generated SSH credentials for your sandbox.
If you're still unable to connect, try the above with the -v added and send the debug output text to [email protected] so we can help further.
*Another workaround is to remove all your saved ssh keys, but that's kind of a drastic, if-all-else-fails, last-resort measure. You shouldn't need to do this.