---
title: blossom server:ssh
url: "/docs/reference/cli/server/ssh/"
canonical_url: https://docs.blossom88.com/docs/reference/cli/server/ssh/
markdown_url: https://docs.blossom88.com/docs/reference/cli/server/ssh.md
summary: Open an SSH session to a managed Server
categories:
- cli
- reference
---

# blossom server:ssh

Open an SSH session to a managed Server

## Usage

    blossom server:ssh --id SERVER [--direct --identity PATH] [-- COMMAND...]

## Flags

| Flag | Description |
| --- | --- |
| `--id (required)` | Server id |
| `--direct` | Use direct SSH with your own key and existing firewall admission |
| `--identity` | Local private key path for --direct |
| `--reason` | Short audit reason for relay access. Default: customer_ssh. |
| `--known-hosts` | Persistent relay host-key file |

Account admins can open an audited root session through the Server Agent. Blossom uses a one-time key and remembers the Server’s host key. The session expires after 30 minutes. No inbound port is needed.

    blossom server:ssh --id server-...
    blossom server:ssh --id server-... -- uname -a

For direct SSH, add your public key and a TCP 22 firewall rule for your IP in Server Access, then explicitly select --direct. OpenSSH uses your configured host-key checks.

    blossom server:ssh --id server-... --direct --identity ~/.ssh/id_ed25519

## Subcommands

- [server:ssh:revoke](/docs/reference/cli/server/ssh/revoke/) - Close a Blossom SSH session
- [server:ssh:sessions](/docs/reference/cli/server/ssh/sessions/) - List SSH sessions for a Server
