# 5050 ssh

> Open a shell inside a running replica.

Open a shell inside a running replica.

## Usage

```sh
5050 ssh [-- CMD]
```

## Flags

| Flag | Meaning |
|---|---|
| `--replica ID` | Pick a replica (default: the first running one) |
| `--session NAME` | Name the session so you can reattach to it within 10 minutes |

## Details

- The shell runs over a WebSocket through the console; no SSH port is opened on any host. Every session is audited.

## Examples

```sh
5050 ssh
5050 ssh -- ls /app
```

## Railway equivalent

`railway ssh` works the same way through the [railway alias](https://5050cloud.com/docs/cli/railway-alias).

Every command also accepts the [global options](https://5050cloud.com/docs/cli/global-options).
