diff --git a/.ssh/config b/.ssh/config index b3b2a9e..3ec6e77 100644 --- a/.ssh/config +++ b/.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