diff --git a/cmd/podman/machine/ssh.go b/cmd/podman/machine/ssh.go index c2407f2265..c662e59cd4 100644 --- a/cmd/podman/machine/ssh.go +++ b/cmd/podman/machine/ssh.go @@ -100,10 +100,7 @@ func remoteConnectionUsername() (string, error) { if err != nil { return "", err } - dest, _, _, err := cfg.ActiveDestination() - if err != nil { - return "", err - } + dest := cfg.Engine.ServiceDestinations[cfg.Engine.ActiveService].URI uri, err := url.Parse(dest) if err != nil { return "", err