Skip to main content
Manage SSH keys and get SSH connection information for Pods.
runpodctl ssh <subcommand> [flags]

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:
runpodctl ssh info <pod-id>

Info flags

--verbose
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.To connect to your Pod, use the SSH command provided in the output:
ssh user@host -p <port> -i <key-path>

List SSH keys

List all SSH keys associated with your account:
runpodctl ssh list-keys

Add an SSH key

Add a new SSH key to your account:
# Add a key from a file
runpodctl ssh add-key --key-file ~/.ssh/id_ed25519.pub

# Add a key directly
runpodctl ssh add-key --key "ssh-ed25519 AAAA..."

Add-key flags

--key
string
The public key string to add.
--key-file
string
Path to a file containing the public key.

Remove an SSH key

Remove an SSH key from your account by name or fingerprint:
# Remove a key by name
runpodctl ssh remove-key --name my-laptop

# Remove a key by fingerprint
runpodctl ssh remove-key --fingerprint SHA256:abcd1234...
You must provide either --name or --fingerprint. If multiple keys share the same name, use --fingerprint instead.

Remove-key flags

--name
string
Name of the key to remove.
--fingerprint
string
Fingerprint of the key to remove. Use this when multiple keys have the same name.