Skip to content

Commit

Permalink
Merge pull request #23621 from inknos/podman-machine-fix-for-flake-23505
Browse files Browse the repository at this point in the history
Fix known_hosts file clogging and remote host id
  • Loading branch information
openshift-merge-bot[bot] authored Aug 15, 2024
2 parents 62b953b + 6b1c7de commit f456b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/machine/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit f456b53

Please sign in to comment.