opus
March 13th, 2005, 23:50
Me again.....

Why is my ssh session timing out? Local/remote, it doesnt matter. Only on this machine.

http://www.pastebin.com/255517

bsdjunkie
March 14th, 2005, 10:36
is the box openbsd? by default the shell may kick you out after a certain amount of idle time. I dont think ssh should do it though.

opus
March 14th, 2005, 11:17
Sorry,

FreeBSD 5.3-RELEASE #0

opus
March 14th, 2005, 11:49
I use Bash and just tried with CSH, timed out.

bsdjunkie
March 14th, 2005, 12:23
in bash, try setting this variable

TMOUT=0

opus
March 14th, 2005, 12:36
I have also done sshd -ddd -p 22 and I changed syslogd to write all errors. Nothing showed up when it timed out. I have also used ssh -2 with the same results.

Of course, if I keep trafshow running or something, it doesnt time out. It is timing out due tono packets being sent. What are my KeepAlive options, that arent on by default?
Bash default is TMOUT=0, isnt it? Not even sure how to set it at this point.

opus
March 15th, 2005, 12:26
Resolved.

Added to ssh_config:

ServerAliveInterval 120
ServerAliveCountMax 10
TCPKeepAlive yes