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?
Asked
Active
Viewed 861 times
0
-
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? – 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. – May 10 '13 at 13:13
-
2What OS are you running? – May 10 '13 at 13:25
-
Maybe you're running out of RAM – Wolfizen May 10 '13 at 13:54
-
You may want to look at my answer to a similar question, but set the timeout to higher values: http://superuser.com/a/569357/195224 – mpy May 10 '13 at 14:05
2 Answers
0
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
trurl
- 2,172
- 1
- 13
- 16
0
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
suspectus
- 4,735
- 14
- 25
- 34