Skip to content
Snippets Groups Projects
Unverified Commit 7890e8dc authored by David Gageot's avatar David Gageot Committed by GitHub
Browse files

Merge pull request #4451 from krufab/bugfix/ISSUE-4450-use-ssh-serveraliveinterval

ISSUE-4450 Added ServerAliveInterval among the default ssh options
parents 03318991 83807658
Branches
Tags
No related merge requests found
...@@ -68,14 +68,15 @@ const ( ...@@ -68,14 +68,15 @@ const (
var ( var (
baseSSHArgs = []string{ baseSSHArgs = []string{
"-F", "/dev/null", "-F", "/dev/null",
"-o", "PasswordAuthentication=no",
"-o", "StrictHostKeyChecking=no",
"-o", "UserKnownHostsFile=/dev/null",
"-o", "LogLevel=quiet", // suppress "Warning: Permanently added '[localhost]:2022' (ECDSA) to the list of known hosts."
"-o", "ConnectionAttempts=3", // retry 3 times if SSH connection fails "-o", "ConnectionAttempts=3", // retry 3 times if SSH connection fails
"-o", "ConnectTimeout=10", // timeout after 10 seconds "-o", "ConnectTimeout=10", // timeout after 10 seconds
"-o", "ControlMaster=no", // disable ssh multiplexing "-o", "ControlMaster=no", // disable ssh multiplexing
"-o", "ControlPath=none", "-o", "ControlPath=none",
"-o", "LogLevel=quiet", // suppress "Warning: Permanently added '[localhost]:2022' (ECDSA) to the list of known hosts."
"-o", "PasswordAuthentication=no",
"-o", "ServerAliveInterval=60", // prevents connection to be dropped if command takes too long
"-o", "StrictHostKeyChecking=no",
"-o", "UserKnownHostsFile=/dev/null",
} }
defaultClientType = External defaultClientType = External
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment