--- "Ian C. Sison" <[EMAIL PROTECTED]> wrote:
>
> Are you working behind a MASQ'ed gateway? If yes
> then that is your
> problem. MASQ will disconnect any idle connections,
> for which i don't
> know if there is a way to tweak the value. What you
> can do is ssh to the
> gateway server, then ssh out to the actual server.
>
there are a couple of ways to uproach this if masq is
your problem (using ipchains )
ipchains -M -S tcptimeout tcpfintimeout udptimeout
all in seconds so setting
ipchains -M -S 7200 120 300
tcp = 2 hours
tcpfin = 2 minutes
udp= = 5 minutes
make sure you turn keep_alive in ssh ( by default this
is on i think)
you can even tweak linux for tcptime outs
i dunno the defaults mine is set to 7200( 2 hours)
edit /proc/sys/net/ipv4/tcp_keepalive_time
echo 14400 > /proc/sys/net/ipv4/tcp_keepalive_time
to set it to 4 hours :)
oh try to look if TMOUT ( in bash echo $TMOUT ) is
also set
TMOUT=1200
export TMOUT
this makes connections (telnet/ssh) to timeout in 20
minutes of idle time
( i know this is kinda a long shot but it is worth
checking administrators sets this variable for the
people who always to forgot to logout when they login
:) )
-Dek
"pumapatak nanaman ang ulan" - apo hiking society
>
> On Wed, 18 Jul 2001, Percy wrote:
>
> > hello!
> > pede ba iconfigure ang ssh na tagalan ang delay
> time for idle connections
> > bago ito i-disconnect? paano kaya ito? kasi
> napuputol agad ang connection ko
> > sa ssh pag nag-idle ako sandali eh....
> >
> > thanks!
> >
> >
> >
>
_________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at
> http://mail.yahoo.com
> >
> > _
> > Philippine Linux Users Group. Web site and
> archives at http://plug.linux.org.ph
> > To leave: send "unsubscribe" in the body to
> [EMAIL PROTECTED]
> >
> > To subscribe to the Linux Newbies' List: send
> "subscribe" in the body to
> [EMAIL PROTECTED]
> >
>
> _
> Philippine Linux Users Group. Web site and archives
> at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to
> [EMAIL PROTECTED]
>
> To subscribe to the Linux Newbies' List: send
> "subscribe" in the body to
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]