The server stays online. No matter what. High Availability Mosh makes it possible.
Mosh—Mobile Shell—is already built for resilient, roaming SSH-like sessions. It keeps your terminal alive when your network drops, when you jump Wi‑Fi, when your IP changes. But on a single server, resilience stops at hardware failure. High Availability Mosh removes that weakness.
With HA Mosh, the session endpoint is no longer tied to one host. Multiple nodes run in sync, ready to pick up instantly if one dies. A load balancer sits in front, routing Mosh traffic to healthy nodes. State synchronization ensures your commands keep running seamlessly across failovers. Latency is low. Jumps are invisible to the user.
Key elements for a High Availability Mosh setup:
- Multi-node architecture with at least two active servers in separate zones
- State handoff via shared storage or session-aware middleware
- UDP-friendly load balancing for the Mosh protocol
- Health checks that detect and route around failing nodes faster than human perception
The biggest technical constraint: Mosh runs over UDP. Many common load balancers and HA tools are tuned for TCP. You need a balancer with proper UDP support and minimal connection tracking delays. Use systems like HAProxy with UDP mode, NGINX stream proxy, or cloud LB services that support raw UDP forwarding.