> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runpod.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ssh

Manage SSH keys and get SSH connection information for Pods.

<RequestExample>
  ```bash Command theme={"theme":{"light":"github-light","dark":"github-dark"}}
  runpodctl ssh <subcommand> [flags]
  ```
</RequestExample>

## 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:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
runpodctl ssh info <pod-id>
```

#### Info flags

<ResponseField name="--verbose" type="bool">
  Include Pod ID and name in output. Shorthand: `-v`.
</ResponseField>

<Note>
  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:

  ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
  ssh user@host -p <port> -i <key-path>
  ```
</Note>

### List SSH keys

List all SSH keys associated with your account:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
runpodctl ssh list-keys
```

### Add an SSH key

Add a new SSH key to your account:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# 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

<ResponseField name="--key" type="string">
  The public key string to add.
</ResponseField>

<ResponseField name="--key-file" type="string">
  Path to a file containing the public key.
</ResponseField>

## Related commands

* [`runpodctl pod get`](/runpodctl/reference/runpodctl-pod)
* [`runpodctl doctor`](/runpodctl/reference/runpodctl-doctor)
