immediate “Too many authentication failures” – check your authentication methods
Posted by jpluimers on 2017/11/15
If you ever ssh
into something and immediately get the immediate Too many authentication failures
message, then you’ve probably mixed your authentication methods.
Follow the steps in [WayBack] ssh – Too many authentication failures for username – Super User (thanks [WayBack] John T and [WayBack] Ben West).
First check out whats wrong by slowly increasing the number of -v
parameters to make output more verbose:
ssh -v
ssh -v -v
ssh -v -v -v
Then try to find out which authentication method fails: usually it’s a private key that’s wrong.
I’ve had success in various cases where I screwed up with these ssh
parameters:
-o PubkeyAuthentication=no
-i some_id_rsa -o IdentitiesOnly=yes
–jeroen
Leave a Reply