Merge pull request #10485 from baude/machinesshkeys
Add options to podman machine ssh
This commit is contained in:
commit
c59ae7c87c
|
|
@ -408,7 +408,7 @@ func (v *MachineVM) SSH(name string, opts machine.SSHOptions) error {
|
||||||
sshDestination := v.RemoteUsername + "@localhost"
|
sshDestination := v.RemoteUsername + "@localhost"
|
||||||
port := strconv.Itoa(v.Port)
|
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 {
|
if len(opts.Args) > 0 {
|
||||||
args = append(args, opts.Args...)
|
args = append(args, opts.Args...)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue