podman-machine-ssh - Man Page

SSH into a virtual machine

Synopsis

podman machine ssh [name] [command [arg ...]]

Description

SSH into a Podman-managed virtual machine and optionally execute a command on the virtual machine.  Unless using the default virtual machine, the first argument must be the virtual machine name. The optional command to execute can then follow. If no command is provided, an interactive session with the virtual machine is established.

Options

--help

Print usage statement.

Examples

To get an interactive session with the default virtual machine:

$ podman machine ssh

To get an interactive session with a VM called myvm:

$ podman machine ssh myvm

To run a command on the default virtual machine:

$ podman machine ssh rpm -q podman

To run a command on a VM called myvm:

$ podman machine ssh  myvm rpm -q podman

See Also

podman-machine (1)

History

March 2021, Originally compiled by Ashley Cui acui@redhat.com ⟨mailto:acui@redhat.com⟩

Referenced By

podman-machine(1).

The man page docker-machine-ssh(1) is an alias of podman-machine-ssh(1).