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