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.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--as |
string | ezgh-user |
the account on the node |
This command also takes the global flags.