From 0bc2f52f08a927765c5e0e4ead7568d820c16789 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 23 May 2021 21:33:11 +0200 Subject: Add ServerAliveInterval for flaky VPN connections This favors keeping alive when the server connection/VPN disconnects for 5 minutes and if a connection is stuck, I can always use `~.` command to disconnect --- .ssh/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ssh/config b/.ssh/config index 4be131d..4676904 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1 +1,4 @@ Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye" + +Host * + ServerAliveInterval 300 -- cgit v1.2.3