OpenSSH: Difference between revisions
No edit summary |
|||
| (3 intermediate revisions by the same user not shown) | |||
| 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 - | 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 | ||
* David Hilley's "[https://docs.google.com/View?id=dg9vm9bf_22hptwkgfq&pli=1 SSH Tips and Tricks]", GT-LUG 2007-02-28 | |||
[[CATEGORY: Networking]] | |||