Eternal Terminal
Eternal Terminal (ET) is a remote shell that reconnects after a network drop, a change of network or your computer sleeping. ZestSSH supports it on computers: it runs the et program installed on your computer and shows its output in ZestSSH’s terminal (as it ran the mosh program before 4.0; Mosh is built in now).
Availability
Section titled “Availability”| Platform | Status |
|---|---|
| Android | Not available |
| iOS | Not available |
| Windows | Supported (through WSL) |
| macOS | Supported |
| Linux | Supported |
A phone’s host editor does not offer ET. An ET host that reaches a phone or tablet through sync does not connect there, and nothing is sent to the host. ZestSSH says “Eternal Terminal hosts open on a computer only: a phone or tablet has no Eternal Terminal client. Open this host in ZestSSH on a computer, or edit it to connect over SSH from here.” with the code ZS-1003.
What Eternal Terminal is
Section titled “What Eternal Terminal is”- The session lives on the server, in
etserver; the client reconnects to it after an interruption. - TCP: ET uses an ordinary TCP connection to
etserver(port 2022 by default), so it works where UDP is blocked. - SSH first:
etsigns in over SSH to set up the session, then switches to its own protocol.
Server requirements
Section titled “Server requirements”etserver must be installed and running on the host, listening on port 2022:
# Ubuntu/Debiansudo apt install et
# Fedorasudo dnf install et
# Arch Linuxsudo pacman -S eternalterminal
# macOS (Homebrew)brew install MisterTea/et/etThe host’s firewall must let TCP port 2022 through, and SSH must be reachable on the port you set for the host.
Client requirements
Section titled “Client requirements”macOS and Linux
Section titled “macOS and Linux”Install et with your package manager (the same packages as above). ZestSSH looks for it on your PATH and also in /opt/homebrew/bin, /usr/local/bin and /opt/local/bin, so a Homebrew or MacPorts install is found even when ZestSSH was opened from the Finder or the Dock.
Windows
Section titled “Windows”ET on Windows runs inside WSL (Windows Subsystem for Linux):
- Install WSL:
wsl --install - Install et inside WSL:
wsl sudo apt install et - ZestSSH runs
etthrough WSL when you connect.
Before connecting, ZestSSH checks that WSL is there and that et is installed inside it.
Quick start
Section titled “Quick start”- On the Hosts page, choose New host.
- Under Protocol, choose ET. The port is set to the default SSH port: it is the SSH port
etsigns in on, not theetserverport. - Type the Address and pick a Key.
- Choose Save host, then connect to the host.
ZestSSH checks that et is installed, then starts the session.
How it works
Section titled “How it works”- Check: ZestSSH looks for
et(inside WSL on Windows). If it is missing, nothing is sent to the host and the connection says what to install, with the code ZS-1002 (see The connection fails at once). - Arguments:
et --port 2022 [--ssh-option Port=<ssh port>] [--ssh-option IdentityFile=<key> --ssh-option IdentitiesOnly=yes] user@host. The SSH port is passed only when it is not 22. Host and user names are checked against a strict set of characters and may not begin with a dash, so nothing you type can be taken for an option. - Key: if the host’s key is an SSH key, ZestSSH writes the private key to a temporary file that only your account can read and deletes it when the session ends. On Windows it is written inside WSL, in a folder only your WSL account can open, and removed there when the session ends.
- Session:
etruns withTERM=xterm-256color; its output goes to the terminal and what you type goes to it. - End: when you close the session, ZestSSH sends Ctrl+D so the remote shell ends cleanly, waits 2 seconds, then stops the process.
Host settings
Section titled “Host settings”| Setting | Default | What it does |
|---|---|---|
| Address | (required) | Server host name or IP address |
| Port | Default SSH port | The SSH port et signs in on |
| Key | (optional) | The SSH key to sign in with. ZestSSH hands et a key only, never a password. |
ZestSSH always connects to etserver on port 2022; there is no setting for another port.
Limitations
Section titled “Limitations”- Computers only: not on Android, iPhone or iPad.
- ET is not included: install
eton your computer (inside WSL on Windows). - The server needs
etserverwith TCP port 2022 open. - Sign in with a key: ZestSSH gives
eta key file, never a password. - Signing in uses your computer’s
ssh:etruns thesshprogram on your computer (inside WSL on Windows), so that program’s own known hosts file and configuration apply, not ZestSSH’s saved host keys. - No jump hosts: an ET session connects to the host directly; Connect via is not used.
- No agent forwarding: Forward SSH agent is for SSH sessions.
- Resizing is best effort:
etruns on pipes, not a terminal of its own.
Troubleshooting
Section titled “Troubleshooting”The connection fails at once
Section titled “The connection fails at once”If et is missing on your computer, ZestSSH says “Eternal Terminal is not installed on this computer, so this host cannot open over it. Install it with the command below for your system, then connect again. The host needs etserver installed and running as well.” (ZS-1002), with the commands for your system under it:
| System | Commands shown |
|---|---|
| macOS | brew install MisterTea/et/et |
| Linux | sudo apt install et (Ubuntu, Debian), sudo dnf install et (Fedora), sudo pacman -S eternalterminal (Arch) |
| Windows | wsl --install, then wsl sudo apt install et |
On Windows the message starts “On Windows, Eternal Terminal runs through WSL, and it is not installed there.” To check by hand:
which etin a terminal (orwsl which eton Windows).- On Windows, check that WSL works:
wsl --status.
“Permission denied”, or the session ends right after connecting
Section titled ““Permission denied”, or the session ends right after connecting”- Give the host an SSH key, and check that its public key is in the server’s
~/.ssh/authorized_keys. etterminalmust be on the server’s PATH for the user you sign in as.
The SSH sign-in works but ET never starts
Section titled “The SSH sign-in works but ET never starts”- Check that
etserverruns on the server, for examplesystemctl status et. - Check that TCP port 2022 is open between your computer and the server.
Q: Mosh or Eternal Terminal?
A: Mosh uses UDP and shows what you type at once. ET uses TCP, so it gets through firewalls that block UDP. Both reconnect after a drop. Many people run tmux inside either.
Q: Does the session survive closing ZestSSH?
A: Closing the tab sends the remote shell an end of input, so it exits. Opening the host again starts a new et session.