We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0331899 + 8380765 commit 7890e8dCopy full SHA for 7890e8d
libmachine/ssh/client.go
@@ -68,14 +68,15 @@ const (
68
var (
69
baseSSHArgs = []string{
70
"-F", "/dev/null",
71
- "-o", "PasswordAuthentication=no",
72
- "-o", "StrictHostKeyChecking=no",
73
- "-o", "UserKnownHostsFile=/dev/null",
74
- "-o", "LogLevel=quiet", // suppress "Warning: Permanently added '[localhost]:2022' (ECDSA) to the list of known hosts."
75
"-o", "ConnectionAttempts=3", // retry 3 times if SSH connection fails
76
"-o", "ConnectTimeout=10", // timeout after 10 seconds
77
"-o", "ControlMaster=no", // disable ssh multiplexing
78
"-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",
79
+ "-o", "UserKnownHostsFile=/dev/null",
80
}
81
defaultClientType = External
82
)
0 commit comments