Skip to content

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).

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.

  • 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: et signs in over SSH to set up the session, then switches to its own protocol.

etserver must be installed and running on the host, listening on port 2022:

# Ubuntu/Debian
sudo apt install et
# Fedora
sudo dnf install et
# Arch Linux
sudo pacman -S eternalterminal
# macOS (Homebrew)
brew install MisterTea/et/et

The host’s firewall must let TCP port 2022 through, and SSH must be reachable on the port you set for the host.

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.

ET on Windows runs inside WSL (Windows Subsystem for Linux):

  1. Install WSL: wsl --install
  2. Install et inside WSL: wsl sudo apt install et
  3. ZestSSH runs et through WSL when you connect.

Before connecting, ZestSSH checks that WSL is there and that et is installed inside it.

  1. On the Hosts page, choose New host.
  2. Under Protocol, choose ET. The port is set to the default SSH port: it is the SSH port et signs in on, not the etserver port.
  3. Type the Address and pick a Key.
  4. Choose Save host, then connect to the host.

ZestSSH checks that et is installed, then starts the session.

  1. 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).
  2. 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.
  3. 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.
  4. Session: et runs with TERM=xterm-256color; its output goes to the terminal and what you type goes to it.
  5. End: when you close the session, ZestSSH sends Ctrl+D so the remote shell ends cleanly, waits 2 seconds, then stops the process.
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.

  • Computers only: not on Android, iPhone or iPad.
  • ET is not included: install et on your computer (inside WSL on Windows).
  • The server needs etserver with TCP port 2022 open.
  • Sign in with a key: ZestSSH gives et a key file, never a password.
  • Signing in uses your computer’s ssh: et runs the ssh program 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: et runs on pipes, not a terminal of its own.

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 et in a terminal (or wsl which et on 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.
  • etterminal must be on the server’s PATH for the user you sign in as.
  • Check that etserver runs on the server, for example systemctl 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.