Linux: ssh error “too many authentification error”

Hi,

if you cannot logon to a linux machine and you got an error:

ssh – too many authentification failures


Check if the max failures in pam are reached:

root@debdev ~ # pam_tally --user root
root@debdev ~ # pam_tally2 --user root

Another possiblity is that more authentification attempts/methods used then in sshd_config are allowed by

MaxAuthTries 2

This could happend if too many ssh keys are loaded in ssh-agent. Try to reduce the keys, because each key is an authentification attempt. Or, if password authentication is allowed, add -o PubkeyAuthentication=no to the ssh command line under Linux or disable putty-agent usage in putty then only one attempt is made.

Putty – Disable Agent

Michael

Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.