Headsmacking Tip O’ The Day

This post was written by Chris Latko on November 13, 2009
Posted Under: Miscellaneous

terminalI love Terminal.app. Especially with tabs. I spend most my day in it. I don’t want to make you read my ramblings, but the thing that almost drives me to jump out the window is consistently losing connections due to timeouts. I’m usually on three or four servers at a time and when I’m at home, every few minutes, timeout. BLAST! This doesn’t happen at all locations, usually on residential connections. I’ve dealt with it for years. Why?

Smack my head. I should have jumped out that window. This is so easy to fix:

  1. Open up your sshd config, usually in /etc/ssh/sshd_config
  2. Uncomment “ClientAliveInterval” and add the number of seconds after. I went with 600.

Problem solved. Kind of makes me question how much misery I just accept because “That’s just the way it is”.

Comments RSSComments

OMG can it really be that simple? after years of the un-fixed unrelenting internet/network disconnect/dropoff/dropout bug being an issue (unfixed unsolved but well-known by Apple) in every version of os x (less bad in 10.3 maybe? ) — can it really be that simple?

why in the flipping flippety-flip hasn’t apple fixed this for the past 7+ years?

if this really works: THANK YOU!!!! you should get some sort of award or recognition at the very least.

if not …. back to the drawing board :-( but we hope you’ll keep tweaking away to find the solution since apple has been indifferent to it at best for the past 7+years.

#1 
Written By best wordpress blogging webhosts on November 20th, 2009 @ 1:21 am

Did this work for you? I don't think I mentioned that you have to do this on the server side.

#2 
Written By Chris Latko on November 20th, 2009 @ 7:31 pm

You can also configure your SSH client via the ServerAliveInterval directive in the ~/.ssh/config file. Nice because it doesn't require root access to the server or any server-side configuration.

#3 
Written By Ethan Winn on November 20th, 2009 @ 7:47 pm

I figured that was the case, but hadn't tested it. Thanks for the heads up on that!

#4 
Written By Chris Latko on November 20th, 2009 @ 7:53 pm

Add a Comment

required, use real name
required, will not be published
optional, your blog address

Additional comments powered by BackType