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.
Flags
This command also takes the global flags.