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.