Difference between revisions of "Configure OpenSSH to reuse ssh connections"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | Configure [[Ssh (OpenSSH client)|ssh client]] ([[OpenSSH]]) to reuse connections | + | Configure [[Ssh (OpenSSH client)|ssh client]] ([[OpenSSH]]) to reuse connections using <code>[[ControlMaster]], [[ControlPath]] and [[ControlPersist]]</code> directives. |
+ | |||
+ | |||
− | |||
− | |||
− | |||
− | |||
== Example == | == Example == | ||
Line 19: | Line 17: | ||
* <code>[[MaxSessions]]</code> | * <code>[[MaxSessions]]</code> | ||
* Stop session [[multiplexing]]: <code>[[ssh -O stop]]</code> | * Stop session [[multiplexing]]: <code>[[ssh -O stop]]</code> | ||
+ | * https://stackoverflow.com/questions/20410252/how-to-reuse-an-ssh-connection | ||
+ | * https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing | ||
== See also == | == See also == |
Revision as of 08:31, 31 August 2021
Configure ssh client (OpenSSH) to reuse connections using ControlMaster, ControlPath and ControlPersist
directives.
Contents
Example
ControlMaster== auto ControlPath ~/.ssh/sockets/%r@%h-%p ControlPersist 36000
Change log
OpenSSH 4.2: September 1, 2005 https://www.openssh.com/txt/release-4.2
- Added
ControlMaster=auto/autoask
options to support opportunistic multiplexing (see thessh_config
manpage for details).
Related terms
MaxSessions
- Stop session multiplexing:
ssh -O stop
- https://stackoverflow.com/questions/20410252/how-to-reuse-an-ssh-connection
- https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing
See also
sshd
,sshd logs
,sshd -t
,sshd -T
,sshd_config
,sftp
- OpenSSH (changelog):
/etc/ssh/sshd_config
|/etc/ssh/ssh_config
|~/.ssh/
|openSSL | sshd logs
|sftp
|scp
|authorized_keys
|ssh-keygen
|ssh-keyscan
|ssh-add
|ssh-agent
|ssh
|Ssh -O stop
|ssh-copy-id
|CheckHostIP
|UseKeychain
, OpenSSF, ~/.ssh/authorized_keys
Advertising: