Hi, I don't know if this is the approriate place to post it. But it really annoying me. My ssh connection times out every 10 minutes or so and I want it to keep open for like 3 hours so that I don't have to relogin. However, I cannot find an option to change this!! In the Secure SSH we have a option called IdelTimeout to deal with this but OpenSSH seems to totally ignore this option. Can somebody tell me how to modify the c files to change this?? Or will there be support for this? Many thanks. -- "My grandpa told me to remember two things in life. Look out for Number One, and remember your number" - Orville Cogswell -- http://members.xoom.com/_XOOM/dizhao/index.html
dzhao1 at gl.umbc.edu said:> My ssh connection times out every 10 minutes or so and I want it to > keep open for like 3 hours so that I don't have to relogin.This would normally be a function of the shell/utilties/policy on the box you are logging into and nothing to do with ssh. There is a keep-alive function - this I understand is done by putting a keep-alive on the socket used, and the timeouts cannot be easily tweaked on OSes I use. Nigel. -- [ - Opinions expressed are personal and may not be shared by VData - ] [ Nigel Metheringham Nigel.Metheringham at VData.co.uk ] [ Phone: +44 1423 850000 Fax +44 1423 858866 ]
Di Zhao wrote ...> I want that, if I leave my ssh client for a while(2,3 hours), the sshd > will still keep the connection, not like now, when I ssh to my server and > leave, my ssh client always tell me (both client/serve are RH6.0) > "Read from remote host my_ssh_server: Connection reset by peer" > >From my network course, that should be the error message when the server > send a RST packet to my client server.I've noticed the same timeout behavior as well, but only when connected from outside the local network. ssh connections between machines on the local network stay connected until I terminate them. However, when I connect from a remote network, the connection does get dropped after some amount of time. However, when this happened, I did not have any spare time to investigate, so I can't offer any further information at this time. FWIW, my ssh server is OpenBSD 2.6 with OpenSSH-1.2 while both ssh clients (local and remote) are Linux 2.2.x with OpenSSH-1.2.2. -- David Cato dcato at crunchyfrog.net