From 5028fb21b019e8a867d031463f5de1402fc053f4 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 12 Jan 2025 20:35:43 -0500 Subject: [PATCH] Add 3-second timeout for SSH connection attempts --- sync/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sync/client.go b/sync/client.go index 4598ddd..8a824ef 100644 --- a/sync/client.go +++ b/sync/client.go @@ -93,6 +93,7 @@ func GetSSHClient(manualSync bool) (*ssh.Client, string, bool) { ssh.PublicKeys(parsedKey), }, HostKeyCallback: hostKeyCallback, + Timeout: 3 * time.Second, } // connect to SSH server