[1] http://www.anchor.com.au/blog/2010/02/ssh-controlmaster-the-...
[1] http://www.anchor.com.au/blog/2010/02/ssh-controlmaster-the-...
I usually set ControlPersist to 30 seconds, which may not be long enough for people hoping to get performance improvements from GitHub, . Setting it to too large a value increases the risk that you'll have stale server sockets after a network outage.
Best part of reading this article. I had turned off connection sharing because of this.
So what, in more details, are the downsides to ControlPersist?
ssh> help
Commands:
-L[bind_address:]port:host:hostport Request local forward
-R[bind_address:]port:host:hostport Request remote forward
-D[bind_address:]port Request dynamic forward
-KR[bind_address:]port Cancel remote forward
(If you're not familiar with them, some of the other escape sequences are useful too. ~? lists them all.)[EDIT] Apparently, if you have a recent enough version, you can add a forward to the master with `ssh -O forward ...` [1]
[1] http://serverfault.com/questions/237688/adding-port-forwardi...
Host github.com
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist yesI believe this is what ControlPersist is meant to solve - it may not have existed when that blog post was written.