OpenSSH: Difference between revisions

Line 19: Line 19:
0:00.22
0:00.22
[recombinator](0) $ </pre>
[recombinator](0) $ </pre>
Just set <tt>ControlPath</tt> to something like <tt>~/.tmp/ssh/%r-%l-%h-%p</tt> (make sure the directory exists!), and <tt>ControlMaster</tt> to <tt>auto</tt> or <tt>autoask</tt>. Display and agent forwardings will be available to all multiplexed connections, but (at least as of 5.2) it is impossible to forward multiple displays or agents. The [http://gcc.gnu.org/wiki/SSH_connection_caching GCC Wiki] recommend creating a master ssh connection, ala persistent port forwardings, via an early <tt>ssh -fMN</tt>.
Just set <tt>ControlPath</tt> to something like <tt>~/.tmp/ssh/%r-%l-%h-%p</tt> (make sure the directory exists!), and <tt>ControlMaster</tt> to <tt>auto</tt> or <tt>autoask</tt>. Display and agent forwardings will be available to all multiplexed connections, but (at least as of 5.2) it is impossible to forward multiple displays or agents. The [http://gcc.gnu.org/wiki/SSH_connection_caching GCC Wiki] recommend creating a master ssh connection, ala persistent port forwardings, via an early <tt>ssh -fMN</tt>. Note that the master connection will not, by default, exit until any connections multiplexed atop it have disconnected.
 
If the master connection goes bad for some reason, all multiplexed connections tend to suffer similarly (as one would expect).


==External Links==
==External Links==
* [http://www.openssh.com/ OpenSSH] home page
* [http://www.openssh.com/ OpenSSH] home page
* [http://www.monkey.org/~provos/scanssh/ ScanSSH] home page
* [http://www.monkey.org/~provos/scanssh/ ScanSSH] home page