---
title: "ezgh fleets shell"
description: "Open a shell on a node in this terminal."
---

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

# ezgh fleets shell

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh fleets shell <node|instance> [--as account] [flags]
```

Open a shell on a node (ID, slug nod\_… or name), or on the node of an EZGH instance (ins\_…), in this terminal. It runs as `--as`: ezgh-user (the default, the node's shared account) or an account that exists on the node, such as root. IAM decides who may be which account, with fleets.sessions.start on the node's account.

In a terminal, keystrokes go to the node as they're typed (Ctrl-C included). To disconnect, press Enter, then ~ and . (like ssh); ~~ at the start of a line sends one ~. A dropped connection reconnects to the same session for up to a minute.

The exit code is the shell's when it exits, 0 when you disconnect, and otherwise ezgh's (4 when your access was revoked, 1 for other ends; the message says why). A session ends after the project's idle timeout and maximum duration (Fleets settings).

Part of [`ezgh fleets`](/cli/reference/fleets).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--as` | string | `ezgh-user` | the account on the node |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/fleets-shell/index.mdx
