Skip to main content
Manage SSH keys and get SSH connection information for Pods.

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.
runpodctl pod update --ports replaces the Pod’s entire port list (unlike --env, which merges), so always include your current ports when you add 22/tcp. Changing the port list also bumps the Pod’s version, which can restart the container. Processes and container-local state outside the volume disk may not survive. If the Pod is running an active job, checkpoint your work to the volume disk before changing ports, since the container may restart.
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:
You must provide either --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.