Use ControlMaster

This commit is contained in:
2025-06-10 11:32:16 +02:00
parent 0a750c54f9
commit f73db00756

View File

@@ -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