I 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:
- Open up your sshd config, usually in /etc/ssh/sshd_config
- 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”.
4 thoughts on “Headsmacking Tip O’ The Day”
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.
Did this work for you? I don't think I mentioned that you have to do this on the server side.
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.
I figured that was the case, but hadn't tested it. Thanks for the heads up on that!