From f73db007560a13e13da8b8237778442bc63647aa Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Tue, 10 Jun 2025 11:32:16 +0200 Subject: [PATCH] Use ControlMaster --- .ssh/config | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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