mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Add 3-second timeout for SSH connection attempts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user