Subcommands
Get SSH connection info
Get SSH connection details for a Pod. This returns the SSH command and key information, but does not initiate an interactive session:Info flags
bool
Include Pod ID and name in output. Shorthand:
-v.The
ssh info command returns connection details that you can use to connect via SSH manually. It does not start an interactive SSH session. When a Pod is not reachable, runpodctl ssh info now reports the specific reason instead of a generic “pod not ready” message.To connect to your Pod, use the SSH command provided in the output:runpodctl ssh info explains which of the following cases applies. It also reports the Pod’s runtimeStatus, so you can match a not-ready result to the runtime status vocabulary:
For the “No SSH port published” case,
runpodctl ssh info gives you a ready-to-run command of the form runpodctl pod update <pod-id> --ports <existing-ports>,22/tcp that preserves your existing ports.
For the full list of runtime status values, see Pod runtime status.
List SSH keys
List all SSH keys associated with your account:Add an SSH key
Add a new SSH key to your account:Add-key flags
string
The public key string to add.
string
Path to a file containing the public key.
Remove an SSH key
Remove an SSH key from your account by name or fingerprint:--name or --fingerprint. If multiple keys share the same name, use --fingerprint instead.
Remove-key flags
string
Name of the key to remove.
string
Fingerprint of the key to remove. Use this when multiple keys have the same name.