LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh connection keep disconected , how to find way? in CentOs vmware (https://www.linuxquestions.org/questions/linux-networking-3/ssh-connection-keep-disconected-how-to-find-way-in-centos-vmware-878305/)

umen 05-02-2011 06:19 AM

ssh connection keep disconected , how to find way? in CentOs vmware
 
Hello i have CentOS installed on vmware , few days ago every thing was working fine. today every time im connect with putty to the CentOs server after few minutes it disconnect me , how can i find what is the reason ?

MensaWater 05-02-2011 09:37 AM

So you're connecting and are able to run commands and then it disconnects later?

If you're using bash or ksh or one of the other Bourne/Korn shell variants run "echo $TMOUT" to see if that variable is set. That variable tells the system to log you out after the number of seconds specified in the variable. Many System Administrators put it in place to close sessions that aren't in active use.

umen 05-02-2011 11:53 PM

well the variable is empty , also when i check /var/log/secure im getting :
Jan 23 18:01:09 localhost sshd[17461]: Exiting on signal 15 when i check the "/var/log/messages" there is nothing that says something about this signal my iptables is closed

MensaWater 05-03-2011 02:27 PM

Signal 15 is the default signal (a/k/a SIGTERM) sent with the "kill" command. (It can also be sent with "kill -15". The message is saying something is killing your process. That might be difficult to track - maybe there is a cron job or a daemon someone has created that is killing idle users?

Does the terminal die if you have something open (e.g. a vi session) after login or only when nothing is open?


All times are GMT -5. The time now is 07:57 PM.