Skip to content
Snippets Groups Projects
Commit 83807658 authored by Fabio Kruger's avatar Fabio Kruger
Browse files

ISSUE-4450 Added ServerAliveInterval among the default ssh options and sorted...

ISSUE-4450 Added ServerAliveInterval among the default ssh options and sorted them alphabetically to improve readability

Signed-off-by: default avatarFabio Kruger <fabio.kruger@vyzvoice.com>
parent 1e3b6b64
Branches
No related tags found
No related merge requests found
......@@ -68,14 +68,15 @@ const (
var (
baseSSHArgs = []string{
"-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", "ConnectTimeout=10", // timeout after 10 seconds
"-o", "ControlMaster=no", // disable ssh multiplexing
"-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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment