diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-05-27 12:57:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 12:57:44 -0400 |
commit | c59ae7c87c523f7104f94f0f3d4fb1b50b30fd4e (patch) | |
tree | 37d264101fbc73800f0eaed0e41fe8b126879c09 | |
parent | cd1f99d063cf8bb4efdb22d2f56f1aef73ff4ba0 (diff) | |
parent | 8e5388e41d60c67199087a5835c6c7725dff6d79 (diff) | |
download | podman-c59ae7c87c523f7104f94f0f3d4fb1b50b30fd4e.tar.gz podman-c59ae7c87c523f7104f94f0f3d4fb1b50b30fd4e.tar.bz2 podman-c59ae7c87c523f7104f94f0f3d4fb1b50b30fd4e.zip |
Merge pull request #10485 from baude/machinesshkeys
Add options to podman machine ssh
-rw-r--r-- | pkg/machine/qemu/machine.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 269a2a2da..0bd711c90 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -408,7 +408,7 @@ func (v *MachineVM) SSH(name string, opts machine.SSHOptions) error { sshDestination := v.RemoteUsername + "@localhost" port := strconv.Itoa(v.Port) - args := []string{"-i", v.IdentityPath, "-p", port, sshDestination} + args := []string{"-i", v.IdentityPath, "-p", port, sshDestination, "-o", "UserKnownHostsFile /dev/null", "-o", "StrictHostKeyChecking no"} if len(opts.Args) > 0 { args = append(args, opts.Args...) } else { |