vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hey Guys I been logging into my box from the outside world ( my job) SSh only . the problem is that when I go idle on the pc, after a certain amount of time I get logged out of my ssh session? I am using ssh by vandyke. I don't see any setting in there. Is there a value I need to change in my ssh config ? |
| |||
| Andy wrote: > Hey Guys > > I been logging into my box from the outside world ( my job) > > SSh only . > > the problem is that when I go idle on the pc, after a certain amount > of time > > I get logged out of my ssh session? > > I am using ssh by vandyke. I don't see any setting in there. > > Is there a value I need to change in my ssh config ? > This could be due to sshd or a shell timeout... probably the shell. Check /etc/ssh/sshd_config and read `man sshd_config` for ClientAliveCountMax and ClientAliveInterval. But this just checks that the client software is connected properly, not that they're using the connection. I believe the PuTTY client has an option to send periodic nulls to keep a connection open. An activity timeout is probably due to the shell. From `man bash`: TMOUT If set to a value greater than zero, TMOUT is treated as the default timeout for the read builtin. The select command terminates if input does not arrive after TMOUT seconds when input is coming from a terminal. In an interactive shell, the value is interpreted as the number of seconds to wait for input after issuing the primary prompt. Bash terminates after waiting for that number of seconds if input does not arrive. The same works for ksh and many other shells. What does `echo $TMOUT` say in one of your ssh sessions? This is often set in /etc/profile. - Daniel |
| ||||
| On 2008-03-04, D Herring <dherring@at.tentpost.dot.com> wrote: > Andy wrote: >> Hey Guys >> >> I been logging into my box from the outside world ( my job) >> >> SSh only . >> >> the problem is that when I go idle on the pc, after a certain amount >> of time >> >> I get logged out of my ssh session? >> >> I am using ssh by vandyke. I don't see any setting in there. >> >> Is there a value I need to change in my ssh config ? >> > > This could be due to sshd or a shell timeout... probably the shell. > > Check /etc/ssh/sshd_config and read `man sshd_config` for > ClientAliveCountMax and ClientAliveInterval. But this just checks > that the client software is connected properly, not that they're using > the connection. I believe the PuTTY client has an option to send > periodic nulls to keep a connection open. > > An activity timeout is probably due to the shell. From `man bash`: > TMOUT If set to a value greater than zero, TMOUT is treated > as the default timeout for the read builtin. The select command > terminates if input does not arrive after TMOUT seconds when input is > coming from a terminal. In an interactive shell, the value is > interpreted as the number of seconds to wait for input after issuing > the primary prompt. Bash terminates after waiting for that number of > seconds if input does not arrive. > > The same works for ksh and many other shells. What does `echo $TMOUT` > say in one of your ssh sessions? This is often set in /etc/profile. You might also try setting ServerAliveInterval. I usually put something like the following in my ~/.ssh/config ------------8<--------------------- host somehost user mrgoblin ServerAliveInterval 45 hostname somehost.somewhere.com ForwardX11 no ------------->8--------------------- The following link might help explain what it does. http://www.derkeiler.com/Newsgroups/...5-01/0252.html Gobby -- If a listener nods his head when you're explaining your program, wake him up. |