Cannot SSH anymore, what went wrong?
Posted
by
lbwtz2
on Server Fault
See other posts from Server Fault
or by lbwtz2
Published on 2010-12-27T13:22:08Z
Indexed on
2010/12/27
19:55 UTC
Read the original article
Hit count: 223
ssh
I use to ssh to a remote server (no rsa-key, just password).
Now the server do not accept the connection any more and throw me this error:
ssh_exchange_identification: Connection closed by remote host
While I can google a little to find a fix I can't figure out what went wrong since I haven't touched anything on the machine since last login.
Can you help me find the cause?
EDIT: Inspecting the logs I've found these:
/var/auth.log
/var/log/auth.log:Dec 26 16:40:32 vps sshd[15567]: error: fork: Cannot allocate memory
/var/log/auth.log:Dec 26 16:41:05 vps sshd[15567]: error: fork: Cannot allocate memory
/var/log/auth.log:Dec 26 16:43:47 vps sshd[15567]: error: fork: Cannot allocate memory
/var/log/auth.log:Dec 27 03:20:06 vps sshd[15567]: error: fork: Cannot allocate memory
/var/log/auth.log:Dec 27 16:15:02 vps sshd[15567]: error: fork: Cannot allocate memory
And in the same span-time I've also found a lot of these:
/var/log/auth.log:Dec 26 13:00:01 vps CRON[1716]: PAM unable to dlopen(/lib/security/pam_unix.so): libcrypt.so.1: cannot map zero-fill pages: Cannot allocate memory
/var/log/auth.log:Dec 26 13:00:01 vps CRON[1716]: PAM adding faulty module: /lib/security/pam_unix.so
What are these?
© Server Fault or respective owner