[CentOS] SSH suddenly started failing :(

John Lagrue admin at moraystudio.com
Thu Jun 7 17:54:45 UTC 2007

All of a sudden I can no longer ssh into my server running CentOS 4.5

This is what happens:

[john at lt-131-jdl-f7 ~]$ ssh -Y -p 2222
john at's password:
Connection to closed by remote host.
Connection to closed.

And yes, the account does exist and the password is correct!

Looking at the logs, I see this:

Jun  7 18:51:37 moray1 sshd(pam_unix)[11348]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=  user=john
Jun  7 18:51:46 moray1 sshd[11348]: Accepted password for john from ::ffff: port 57755 ssh2
Jun  7 18:51:46 moray1 sshd(pam_unix)[11352]: session opened for user john by (uid=500)
Jun  7 18:51:46 moray1 pam_loginuid[11352]: set_loginuid failed opening loginuid 
Jun  7 18:51:46 moray1 pam_loginuid[11352]: set_loginuid failed 

Does any of this make sense?

I've tried it on three different clients and get the same thing every time.


Jun  7 18:51:46 moray1 sshd[11352]: fatal: PAM session setup failed[14]: Cannot make/remove an entry for the specified session

More information about the CentOS mailing list