Tuesday, March 17, 2009

Speeding up SSH connections

If you make alot of connections to the same host, it's worth setting up connection sharing in OpenSSH. You can enable this by adding the following to you $HOME/.ssh/config file:


Host *
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p


Do keep in mind that the 'master' will linger on until all slave connections are gone.

No comments: