All posts

The SSH session died, but the code kept running

That’s the magic of combining Mosh with Tmux—two tools that turn unreliable connections into rock-solid remote workflows. Mosh keeps your terminal alive across network drops and IP changes. Tmux keeps your session alive across logouts and disconnections. Together, they make remote development faster, safer, and easier to trust. Why Mosh + Tmux Works Mosh (mobile shell) replaces the traditional SSH experience with a protocol that tolerates bad networks, unpredictable Wi-Fi, or moving between n

Free White Paper

SSH Session Recording + Infrastructure as Code Security Scanning: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

That’s the magic of combining Mosh with Tmux—two tools that turn unreliable connections into rock-solid remote workflows. Mosh keeps your terminal alive across network drops and IP changes. Tmux keeps your session alive across logouts and disconnections. Together, they make remote development faster, safer, and easier to trust.

Why Mosh + Tmux Works

Mosh (mobile shell) replaces the traditional SSH experience with a protocol that tolerates bad networks, unpredictable Wi-Fi, or moving between networks. It keeps your keystrokes flowing with minimal lag and no hard disconnects. Tmux, the terminal multiplexer, gives you persistent sessions, panes, and windows—so even if your client dies, your processes don’t.

When you start a Tmux session inside Mosh, every command stays alive until you kill it. Your build jobs keep compiling. Your logs keep streaming. You can close your laptop, switch networks, board a train, and return hours later without missing a line of output.

Setting It Up in Minutes

  1. Install Mosh:
sudo apt install mosh # Debian/Ubuntu 
brew install mosh # macOS
  1. Install Tmux:
sudo apt install tmux 
brew install tmux
  1. Connect with Mosh:
mosh user@server
  1. Start Tmux:
tmux new -s work

From here, detach (Ctrl+b d) and reattach (tmux attach -t work) anytime without losing your place.

Continue reading? Get the full guide.

SSH Session Recording + Infrastructure as Code Security Scanning: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

The Real Gains

With Mosh + Tmux, you stop worrying about your connection. It’s not just about uptime—it’s about keeping focus. You don’t re-run builds. You don’t restart scripts. You stay in the zone.

Developers use this combo for long-running data jobs, remote server management, and coding on high-latency links without frustration. Once you get used to it, raw SSH feels brittle.

See It Happen Live in Minutes

If you want to see how these ideas power a real developer environment without touching your production setup, you can try it instantly at hoop.dev. You’ll see persistent, resilient remote sessions up and running in no time.

Mosh + Tmux is not a trick. It’s a way to change the rules of remote work.

Get started

See hoop.dev in action

One gateway for every database, container, and AI agent. Deploy in minutes.

Get a demoMore posts