diff --git a/pkg/machine/ssh.go b/pkg/machine/ssh.go index 74b811b984..eee60c5326 100644 --- a/pkg/machine/ssh.go +++ b/pkg/machine/ssh.go @@ -116,7 +116,10 @@ func commonNativeSSH(username, identityPath, name string, sshPort int, inputArgs args := []string{"-i", identityPath, "-p", port, sshDestination, "-o", "IdentitiesOnly=yes", - "-o", "StrictHostKeyChecking=no", "-o", "LogLevel=ERROR", "-o", "SetEnv=LC_ALL="} + "-o", "StrictHostKeyChecking=no", + "-o", "UserKnownHostsFile=" + os.DevNull, + "-o", "CheckHostIP=no", + "-o", "LogLevel=ERROR", "-o", "SetEnv=LC_ALL="} if len(inputArgs) > 0 { interactive = false args = append(args, inputArgs...)