What is this? From this page you can use the Social Web links to save Multiplex several ssh sessions over a single TCP connection to a social bookmarking site, or the E-mail form to send a link via e-mail.

Social Web

E-mail

E-mail It
November 19, 2006

Multiplex several ssh sessions over a single TCP connection

Posted in: general

Simon (gotta love that photo) informs us:

There’s a nifty feature in openssh that lets you multiplex several ssh sessions over a single TCP connection. The first time you connect to a host it sets up a regular ssh connection, and creates a unix socket on a local filesystem; subsequence sessions get tunneled over that connection, without having to do all the heavy duty key exchange, etc.

To enable, add the following to your ssh config file (typically ~/.ssh/config )

ControlMaster auto
ControlPath ~/.ssh/control-master/%r@%h:%p

Create a directory to hold the local sockets

mkdir ~/.ssh/control-master

Test by connecting to a host from one window, then, without logging out, start another window and connection to the same host. The second one should start up a lot faster.


Return to: Multiplex several ssh sessions over a single TCP connection