diff --git a/pkg/cluster/executor/ssh.go b/pkg/cluster/executor/ssh.go index 06c5eeeb16..2b7a7bf360 100644 --- a/pkg/cluster/executor/ssh.go +++ b/pkg/cluster/executor/ssh.go @@ -310,7 +310,7 @@ func (e *NativeSSHExecutor) Execute(cmd string, sudo bool, timeout ...time.Durat ssh = val } - args := []string{ssh, "-o", "StrictHostKeyChecking"} + args := []string{ssh, "-o", "StrictHostKeyChecking=no"} args = e.configArgs(args) // prefix and postfix args args = append(args, fmt.Sprintf("%s@%s", e.Config.User, e.Config.Host), cmd)