Difference between revisions of "Configure OpenSSH to reuse ssh connections"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
(→‎Example: Use the hash of `%l%h%p%r` instead so that it works on a shared home directory too.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Configure [[Ssh (OpenSSH client)|ssh client]] ([[OpenSSH]])  to reuse connections using <code>[[ControlMaster]], [[ControlPath]] and [[ControlPersist]]</code> directives.
 
Configure [[Ssh (OpenSSH client)|ssh client]] ([[OpenSSH]])  to reuse connections using <code>[[ControlMaster]], [[ControlPath]] and [[ControlPersist]]</code> directives.
 
 
 
  
  
 
== Example ==
 
== Example ==
  [[ControlMaster]]== auto
+
  [[ControlMaster]] == auto
  [[ControlPath]] [[~/.ssh/]]sockets/%r@%h-%p
+
  [[ControlPath]] [[~/.ssh/]]sockets/%C
 
  [[ControlPersist]] 36000
 
  [[ControlPersist]] 36000
  
Line 19: Line 16:
 
* https://stackoverflow.com/questions/20410252/how-to-reuse-an-ssh-connection  
 
* https://stackoverflow.com/questions/20410252/how-to-reuse-an-ssh-connection  
 
* https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing
 
* https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing
* <code>[[pipelining]]</code> [[ansible.cfg]]
+
* <code>[[pipelining]]</code> in <code>[[/etc/ansible/ansible.cfg]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 19:37, 12 November 2021

Advertising: