Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On a linux box I created 10 user accounts. They were able to putty and ftp to the linuxServer. I installed minecraft server. Now the users of the 10 accounts can login but the connection automatically gets closed by Linux server. I can still login with putty. My users get an error connection closed by remote host. How can I fix this so my 10 users can login again?

share|improve this question

migrated from May 10 '13 at 13:48

This question came from our site for system and network administrators.

"connection automatically gets closed by remote host" you mean "connection automatically gets closed by my Linux box"... Which connections are closed, putty or minecraft? – Hauke Laging May 10 '13 at 13:07
What does /var/log/secure say? – NickW May 10 '13 at 13:07
Yes my users get the message "connection closed by remote server". there is no /var/log/secure. There is /var/log/syslog and /var/log/messages as well as other files in log. I do not know what to look for. – tedturner May 10 '13 at 13:13
What OS are you running? – NickW May 10 '13 at 13:25
Maybe you're running out of RAM – Wolfizen May 10 '13 at 13:54

Are the connections idle? If so, add this to /etc/ssh/sshd_config on the server:

TCPKeepAlive yes
ClientAliveInterval 60

and reload the sshd:

$ sudo service ssh reload
share|improve this answer

The environmental setting TMOUT is used to automatically log inactive users out. The default is 300 seconds (5 minutes).

Either adjust the TMOUT setting, or to stop auto-logouts completely set to zero, in users .bash_profile (or set system-wide in /etc/profile)

export TMOUT=0
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .