News for hackers. Stuff that matters.
Re:Simplify your life with an SSH config file by adanto6840 on Saturday October 20, 2012 @01:25PM (#4677605)
I've run into a few local networks that have routers, or other network security appliances, that are configured in such a way where my SSH connection would get dropped after XX seconds of inactivity.

Placing the following wildcard entry in my SSH config resolved the issue for those times when I had to use one of these networks...

  # Set Global KeepAlive to avoid timeouts
  Host *
    ServerAliveInterval 240
Re:Simplify your life with an SSH config file by lostapathy on Saturday October 20, 2012 @02:48PM (#4677854)
Caveat, though, is that this will force connections to break if you have a transient network outage that SSH could otherwise cope with. Which can be annoying if you're somewhere with a flaky connection. Putting it on the specific hosts you need rather than globally keeps it from causing you grief anywhere you don't need it.
Re:Simplify your life with an SSH config file by beagle3 on Sunday October 21, 2012 @04:10AM (#4679260)
While that's true, it tries 3 times (default) before it gives up - so, setting to 240 would require 12 minutes of no connection before disconnecting.

In any environment that I've been working in recently, if I lose connection for more than 5 minutes, I've lost it for far longer - I might as well break and reconnect anyway.