podman-machine-ssh - Online Linux Manual PageSection : 1
NAMEpodman-machine-ssh - SSH into a virtual machine
SYNOPSISpodman machine ssh [options] [name] [command [arg ...]]
DESCRIPTIONSSH 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. The exit code from ssh command will be forwarded to the podman machine ssh caller, see Exit Codes ⟨#Exit-Codes⟩. Rootless only.
OPTIONS
--helpPrint usage statement.
--username=nameUsername to use when SSH-ing into the VM.
Exit CodesThe exit code from podman machine ssh gives information about why the command failed. When podman machine ssh commands exit with a non-zero code, the exit codes follow the chroot standard, see below: 125 The error is with podman itself $ podman machine ssh --foo; echo $?
Error: unknown flag: --foo
125
126 Executing a contained command and the command cannot be invoked $ podman machine ssh /etc; echo $?
Error: fork/exec /etc: permission denied
126
127 Executing a contained command and the command cannot be found $ podman machine ssh foo; echo $?
Error: fork/exec /usr/bin/bogus: no such file or directory
127
Exit code contained command exit code $ podman machine ssh /bin/sh -c 'exit 3'; echo $?
3
EXAMPLESTo 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 ALSOpodman(1), podman-machine(1)
HISTORYMarch 2021, Originally compiled by Ashley Cui acui@redhat.com ⟨mailto:acui@redhat.com⟩ 0
Johanes Gumabo
Data Size : 13,308 byte
man-podman-machine-ssh.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 181,981
Visitor ID : :
Visitor IP : 18.119.166.141 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.