[linux-elitists] Fun* with ssh tunnels

Jason White jason at jasonjgw.net
Sat Aug 28 20:10:18 PDT 2010


I just upgraded to OpenSSH 5.6 and added the following to ~/.ssh/config:
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist 1h

The inactivity time-out can be adjusted, or you can simply specify "yes"
to keep the background ssh process around indefinitely. Since the second
and subsequent ssh sessions use the shared connection, there is almost
no delay - ideal for tunnels, provided that you have already established
the first connection to create the background ssh process.



More information about the linux-elitists mailing list