> Markdown version of https://tuna.am/en/docs/cli/bastion/. 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 bastion

Bastion operations.

Guide with examples: [Bastion](https://tuna.am/en/docs/bastion.md).

## Subcommands

| Command                                  | Description                                |
| ---------------------------------------- | ------------------------------------------ |
| [`tuna bastion list`](#list)             | List remote servers.                       |
| [`tuna bastion login`](#login)           | Login to bastion and retrieve certificate. |
| [`tuna bastion logout`](#logout)         | Remove existed certificates.               |
| [`tuna bastion ssh`](#ssh)               | Run shell on a remote server.              |
| [`tuna bastion ssh_config`](#ssh_config) | Generate config for SSH client.            |
| [`tuna bastion status`](#status)         | View certificate status.                   |

## tuna bastion list

List remote servers.

Alias: `ls`, `servers`.

Usage

```bash
tuna bastion list [flags]

```

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

## tuna bastion login

Login to bastion and retrieve certificate.

Usage

```bash
tuna bastion login [login] [flags]

```

| Flag             | Description                |
| ---------------- | -------------------------- |
| `--ttl duration` | Login TTL. Default: `15m`. |

## tuna bastion logout

Remove existed certificates.

Usage

```bash
tuna bastion logout

```

## tuna bastion ssh

Run shell on a remote server.

Usage

```bash
tuna bastion ssh [login]@<host>

```

## tuna bastion ssh_config

Generate config for SSH client.

Usage

```bash
tuna bastion ssh_config [login]@<host>

```

## tuna bastion status

View certificate status.

Usage

```bash
tuna bastion status

```

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