Subject: Re: 10-minute timeout on idle ssh logins
To: James K. Lowden <jklowden@schemamania.org>
From: David Brownlee <abs@netbsd.org>
List: netbsd-help
Date: 12/25/2003 12:05:30
	Are you running NAT with LARGE_NAT set?
	You'll need to change DEF_NAT_AGE (in sys/netinet/ip_nat.h)
	I believe this is intended to be fixed for 1.6.2

On Wed, 24 Dec 2003, James K. Lowden wrote:

> When my lady friend logs in over ssh -- you don't often see those words in
> that particular order -- her connection times out if it's idle for 10
> minutes:
>
> $ time ssh j@www.schemamania.org
> j@www.schemamania.org's password:
> Last login: Wed Dec 24 06:35:17 2003 from dsl254-115-186.n
> NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002
>
> Welcome to NetBSD!
>
> j@www.schemamania.org$
> [time passes...]
> Read from remote host www.schemamania.org: Connection reset by peer
> Connection to www.schemamania.org closed.
>
> real    9m59.674s
> user    0m0.207s
> sys     0m0.021s
>
> Setting debuggin on with -vvv, I get this, which doesn't make anything
> clearer to me:
>
> debug1: channel_free: channel 0: client-session, nchannels 1
> debug3: channel_free: status: The following connections are open:
>   #0 client-session (t4 r0 i0/0 o0/0 fd 4/5)
>
> debug3: channel_close_fds: channel 0: r 4 w 5 e 6
> Read from remote host www.schemamania.org: Connection reset by peer
> Connection to www.schemamania.org closed.
> debug1: Transferred: stdin 0, stdout 0, stderr 112 bytes in 902.2 seconds
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.1
> debug1: Exit status -1
>
> Question: Did tcp/ip or ssh shut down the session?  Or possibly NAT/ipf?
>
> I see from the archives that others have had similar problems, but I don't
> see any definitive answer.  In case it matters, her /usr/bin/ssh is
> provided by FreeBSD 5.0.
>
> Thanks.
>
> --jkl
>
>

-- 
		David/absolute          -- www.netbsd.org: No hype required --