Add 3-second timeout for SSH connection attempts

This commit is contained in:
2025-01-12 20:35:43 -05:00
parent 4ca97834f4
commit 5028fb21b0
+1
View File
@@ -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