Use ControlMaster
This commit is contained in:
12
.ssh/config
12
.ssh/config
@@ -1,9 +1,13 @@
|
||||
Host *
|
||||
# ControlMaster auto
|
||||
# ControlPath ~/.ssh/ctl/%r@%h:%p
|
||||
# ControlPersist 1h
|
||||
# Share SSH connection.
|
||||
ControlMaster auto
|
||||
ControlPath ~/.ssh/ctl/%r@%h:%p
|
||||
ControlPersist 10m
|
||||
# When a shared connection is broken (remote reboot), detect it faster.
|
||||
ServerAliveInterval 11
|
||||
ServerAliveCountMax 3
|
||||
|
||||
ConnectTimeout 10
|
||||
ServerAliveInterval 30
|
||||
AddKeysToAgent yes
|
||||
|
||||
#Host custom-host-with-xorg
|
||||
|
||||
Reference in New Issue
Block a user