-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Phillips Sent: Tuesday, September 02, 2008 10:42 AM To: 'BYU Unix Users Group' Subject: Re: [uug] SSH Connections between campus and off campus
Jeff Anderson wrote: > Hello, > > Something I've noticed when using ssh between on and off campus is > that my connections will drop after being inactive for a short period > of time. I've noticed this when sshing from the CAEDM labs and the > Computer Science department. It happens no matter where I ssh to > (home, slicehost, sdf, etc...) I also experience the problem when > sshing into the CAEDM labs or CS Department from anywhere off campus. > CAEDM to CS and vice versa doesn't seem to be affected. My ssh > connections also don't seem to drop if they are connected through a > VPN. If I have a long job running that outputs things, that seems to > be enough activity to keep it from timing out. When I ran gentoo at > home, I could run an emerge without worrying that my connection would > drop while it was compiling. I ran it in a screen session most of the > time anyway. > > So-- my question is: What is OIT doing to screw with our SSH > connections, and how can we prevent this? I've tried the TCPKeepalive > option, but it didn't seem to help. > > Thanks! > > > Jeff Anderson You're right that OIT is killing inactive SSH connections, but keepalive has always maintained my SSH sessions. I use Putty just like the next guy... Brian The border gateways are dropping inactive connections to free memory for active ones. I've ran into this problem as well. Adding: ServerAliveInterval 30 Into /etc/ssh/ssh_config fixed this issue. This causes ssh to send a ping packet to the destination every 30 seconds. That keeps the connection alive for days. Robert -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/mailman/listinfo/uug-list
