diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-05-30 16:15:18 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-05-30 16:21:11 +0200 |
commit | 4a834655118a83898a20b20663dfd048855fbf5f (patch) | |
tree | 12410d62551f9a10cfcadf3e673aec32dee9ee0f /pkg/machine/qemu/machine.go | |
parent | 0e58636c3a599bb3d7d5ef06ab2773befe8a0150 (diff) | |
download | podman-4a834655118a83898a20b20663dfd048855fbf5f.tar.gz podman-4a834655118a83898a20b20663dfd048855fbf5f.tar.bz2 podman-4a834655118a83898a20b20663dfd048855fbf5f.zip |
podman machine ssh: do not print warning everytime
Currenlty this ssh warning is printed everytime:
`Warning: Permanently added '[localhost]:33915' (ED25519) to the list of known hosts.`
Since this is very anoying and makes it harder to capture the actual
command output we should silence this. With log level error we will only
see the important messages from ssh.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'pkg/machine/qemu/machine.go')
-rw-r--r-- | pkg/machine/qemu/machine.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index e3fb3b970..eb650c91e 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -952,7 +952,8 @@ func (v *MachineVM) SSH(_ string, opts machine.SSHOptions) error { sshDestination := username + "@localhost" port := strconv.Itoa(v.Port) - args := []string{"-i", v.IdentityPath, "-p", port, sshDestination, "-o", "UserKnownHostsFile=/dev/null", "-o", "StrictHostKeyChecking=no"} + args := []string{"-i", v.IdentityPath, "-p", port, sshDestination, "-o", "UserKnownHostsFile=/dev/null", + "-o", "StrictHostKeyChecking=no", "-o", "LogLevel=ERROR"} if len(opts.Args) > 0 { args = append(args, opts.Args...) } else { |