Since yesterday I have problems connecting to my server using SSH/SFTP. I can only connect after a restart of my server. When I try to make a connection after a couple of minutes, I can no longer make an SSH connection. I get the error "server unexpectedly closed network connection". SSH connections that are already open stay open. My server has CentOS 6 on it.
Furthermore varnish keeps crashing seemingly randomly, which means my sites get down.
In my SSH error log I get the error:
fatal: setresuid 500: Resource temporarily unavailable
pam_unix(sshd:session): session closed for user
Any ideas what the problem may be? Thanks
Best Answer
The documentation of the
setresuid
system call has this explanation:In other words you are trying to login as a user, who already has the maximum of allowed processes. Login as another user should still work and allow you to find out what processes are running as the first user.