Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 serverfault.com May 10 '13 at 13:48

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

1  
"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
2  
What OS are you running? –  NickW May 10 '13 at 13:25
    
Maybe you're running out of RAM –  wolfo9999 May 10 '13 at 13:54

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.