SSH only works after intentionally failed password

Posted by pyraz on Server Fault See other posts from Server Fault or by pyraz
Published on 2012-10-04T21:17:13Z Indexed on 2012/10/04 21:40 UTC
Read the original article Hit count: 199

Filed under:
|
|
|
|

So, I'm having a rather weird problem. I have a server, that when I try to SSH into, immediately closes the connection if I type in the correct password on the first attempt. However, if I purposefully enter a wrong password on the first attempt, and then enter a correct password at the second or third prompt, it successfully logs me into the computer. Similarly, when I try to use public key authentication, I get an immediate closed connection. If, however, I enter a wrong password for my key file, followed by another wrong password once it reverts to password authentication, I can successfully log in as long as I provide the correct password at the second or third prompt.

The machine is running Red Hat Enterprise Linux Server release 6.2 (Santiago), and is using LDAP and PAM for authentication. Any ideas on where to start debugging this one? Let me know what config files I need to provide and I'll be happy to do so.

© Server Fault or respective owner

Related posts about ssh

Related posts about ldap