---
title: "ezgh compute instances serial-console"
description: "Connect this terminal to an instance's serial console."
---

> 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 compute instances serial-console

{/* 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 compute instances serial-console <instance>
```

Connect this terminal to a running instance's serial console, given by ID (ins\_…) or name.

Logging in on the serial console needs a password login you set up in the guest yourself, for example with user-data when you launch it: EZGH never adds a password or other login to an instance, and official images have no password login.

In a terminal, keystrokes go to the instance as they're typed (Ctrl-C included). To disconnect, press Enter, then ~ and . (like ssh); ~~ at the start of a line sends one ~. When stdin isn't a terminal, what it reads is sent as it is, and the session stays open after it ends, printing the instance's output, until the session ends or ezgh is interrupted.

A session ends after 30 minutes without input, and after 8 hours. An instance has at most 5 console sessions at a time. The exit code is 0 when you disconnect or the session closes normally, 3 when the console didn't accept the session's one-time ticket, 4 when EZGH Cloud ended the session, and 1 when it ends for another reason (the message says which).

Needs compute.instances.connectSerialConsole on the instance.

Part of [`ezgh compute instances`](/cli/reference/compute-instances).

## Flags

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

Source: https://docs.ezghcloud.com/cli/reference/compute-instances-serial-console/index.mdx
