> Markdown version of https://tuna.am/en/docs/cli/ssh-session/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna ssh-session

Manage your SSH sessions.

Manage SSH sessions recorded by tuna ssh `--record-session`.

In an interactive terminal opens a TUI to watch, upload, export and delete recorded sessions. Otherwise prints this help: use the subcommands below.

Usage

```bash
tuna ssh-session [flags]

```

| Flag               | Description                                                               |
| ------------------ | ------------------------------------------------------------------------- |
| `--api-key string` | Your tuna.am api key with the tunnels:connect scope (env `TUNA_API_KEY`). |

## Subcommands

| Command                              | Description                    |
| ------------------------------------ | ------------------------------ |
| [`tuna ssh-session clear`](#clear)   | Clear all SSH sessions.        |
| [`tuna ssh-session delete`](#delete) | Delete recorded SSH sessions.  |
| [`tuna ssh-session export`](#export) | Export SSH session to GIF.     |
| [`tuna ssh-session list`](#list)     | List SSH sessions.             |
| [`tuna ssh-session upload`](#upload) | Upload SSH session recordings. |
| [`tuna ssh-session watch`](#watch)   | Watch SSH session.             |

## tuna ssh-session clear

Clear all SSH sessions.

Usage

```bash
tuna ssh-session clear [flags]

```

| Flag        | Description                   |
| ----------- | ----------------------------- |
| `-y, --yes` | Skip the confirmation prompt. |

## tuna ssh-session delete

Delete recorded SSH sessions.

Alias: `rm`.

Usage

```bash
tuna ssh-session delete <session...> [flags]

```

Examples

```bash
tuna ssh-session delete <session_id>
tuna ssh-session delete <session_id> <session_id> --yes

```

| Flag        | Description                   |
| ----------- | ----------------------------- |
| `-y, --yes` | Skip the confirmation prompt. |

## tuna ssh-session export

Export SSH session to GIF.

Usage

```bash
tuna ssh-session export [session] [flags]

```

| Flag                  | Description                                                        |
| --------------------- | ------------------------------------------------------------------ |
| `--font-size float`   | Font size in pixels. Default: `14`.                                |
| `--max-idle float`    | Maximum idle time between frames in seconds. Default: `2`.         |
| `-o, --output string` | Output file path (default: \~/Videos/tuna/ssh_session\_\<id>.gif). |
| `--speed float`       | Playback speed multiplier. Default: `1`.                           |

## tuna ssh-session list

List SSH sessions.

Alias: `ls`.

Usage

```bash
tuna ssh-session list [flags]

```

| Flag     | Description            |
| -------- | ---------------------- |
| `--json` | Output in JSON format. |

## tuna ssh-session upload

Upload SSH session recordings.

Usage

```bash
tuna ssh-session upload [session...] [flags]

```

Examples

```bash
tuna ssh-session upload <session_id>
tuna ssh-session upload --all
tuna ssh-session upload --last
tuna ssh-session upload <session_id> --force

```

| Flag               | Description                                                               |
| ------------------ | ------------------------------------------------------------------------- |
| `--all`            | Upload all finished sessions.                                             |
| `--api-key string` | Your tuna.am api key with the tunnels:connect scope (env `TUNA_API_KEY`). |
| `--force`          | Upload sessions that are already uploaded.                                |
| `--last`           | Upload the last finished session.                                         |
| `--tunnel string`  | Associate sessions with a tunnel UID.                                     |

## tuna ssh-session watch

Watch SSH session.

Alias: `play`.

Usage

```bash
tuna ssh-session watch [session] [flags]

```

| Flag            | Description                              |
| --------------- | ---------------------------------------- |
| `--speed float` | Playback speed multiplier. Default: `1`. |

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.
