DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep a remote terminal task alive on a weak network with Termish

Use Mosh with a tmux session so long-running commands survive phone sleep and network changes.

Short answer: Open the host in Hosts and choose Mosh in the host's connection settings; then on the remote, make sure mosh-server is installed and a UDP port is reachable; accept guided installation if it is missing; set the startup command to tmux new -A -s main in the host settings. All steps.

Authorization notice. Termish is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA developer who starts a long build or agent session on a server and needs it to keep running while the phone moves between networks or sleeps.

The problemStandard SSH sessions drop when the connection changes or the app goes to the background, which can interrupt work.

The outcomeThe terminal reconnects after network roaming, and the remote program keeps running inside a named tmux session.

What you need first

  • An Android 8.0+ phone or an iOS device with macOS and Xcode for building
  • A reachable development machine or server with SSH access (Mosh also needs UDP and mosh-server)
  • Login credentials or a private key for that remote host
  • For builds: JDK 17, the Android SDK and Rust via rustup

Steps

  1. Open the host in Hosts and choose Mosh in the host's connection settings.
  2. On the remote, make sure mosh-server is installed and a UDP port is reachable; accept guided installation if it is missing.
  3. Set the startup command to tmux new -A -s main in the host settings.
  4. Start the long-running task inside the tmux session.
  5. Reconnect later from the same host; the session should still be running.

Prompt for your agent

Using the farlume/termish README, describe how to set up a Mosh connection to <host> that starts the command `tmux new -A -s main`. Expected output: a checklist covering mosh-server, UDP reachability and the startup command. Verify that the checklist includes the note that tmux or Mosh is needed for terminal continuity.

Caveat. The README says iOS suspends the app in the background, so long tasks still depend on tmux or Mosh on the remote host.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for farlume/termish and "Keep a remote terminal task alive on a weak network"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer