moshterm

~ et

Eternal Terminal on your phone

moshterm has a native Eternal Terminal (ET) client for iPhone, iPad and Android. It speaks ET's own protocol to a stock etserver, by default on TCP port 2022, so a session picks up where it left off after the network drops. It is free. If the host has no etserver, moshterm connects over SSH and tells you what to install.

App Store coming soon Get it on Google Play

Free, no account. moshterm Pro adds live previews.

Why ET as well as Mosh

Mosh needs UDP, and some networks block it. ET works over TCP and reconnects to the same session when the connection comes back. With Auto, moshterm tries Mosh first, then ET, then SSH, so each host gets the best connection it can take.

Set up etserver

On a Mac, these are the same commands the app suggests when it finds no etserver:

# macOS (Homebrew)brew install et
# runs etserver on port 2022sudo brew services start et

On Linux, install Eternal Terminal from your distribution or the project's own packages. The server reads its port from its config file:

# /etc/et.cfg · the packaged default[Networking] port = 2022 bind_ip = 0.0.0.0

If a firewall sits in front of the host, open that port:

# ufw (Ubuntu, Debian)sudo ufw allow 2022/tcp

Connecting

ET signs in over SSH first, then hands the session to etserver. Use the same user, key and host you use for SSH. If etserver listens somewhere other than 2022, set the ET port in the host's settings.

  • If etserver isn't running, the session connects over SSH and a short note says what to install.
  • If etserver doesn't answer, the app says to check the ET port and the firewall.
  • A session the app keeps reattaches to the same shell after iOS or Android ends the app.
  • Run tmux, Zellij or Herdr on the host and the session picker lists their sessions when you connect.

Questions

Should I use Mosh or Eternal Terminal?

Use Mosh where UDP gets through: it roams between networks and can echo your typing locally. Use Eternal Terminal where only TCP is allowed. With Auto, moshterm tries Mosh, then ET, then SSH.

Which etserver does it work with?

A stock etserver. moshterm's ET client is tested against Eternal Terminal 7.0.0.

Is ET free in moshterm?

Yes. Eternal Terminal, Mosh and SSH are free, with unlimited hosts and no account.