SSH from your iPhone: the toolkit for reaching your server from anywhere
iOS kills background connections by design, so the working setup is an SSH client plus mosh plus tmux. Termius, Blink, and Prompt compared, and what that means for agent servers.
Any decent iOS SSH client will connect; the craft is in surviving iOS. The platform kills background connections by design, so the setup that actually works is three pieces: an SSH client (Termius’s free tier or Blink Shell at $19.99/yr are the usual picks), mosh so sessions reattach instead of dying, and tmux on the server so whatever you were running never stopped in the first place. Get those three in place and a phone is a perfectly serious way to drive a server, including one with an AI agent living on it.
The iOS reality nobody’s app store page leads with
Blink’s documentation says it straight: “the power saving technology in iOS works against long-running SSH connections.” Switch apps for a minute and iOS may freeze the client and drop your TCP session. The vendors’ own mitigations tell you how structural this is: both Blink and Termius offer a location tracking mode (requesting GPS updates purely so the OS keeps the app alive), and both point you at mosh/tmux as the real answer. Blink’s App Store listing even advertises “Mosh connections that even survive a device reboot.” So don’t fight the platform: assume disconnection, and make reattachment free.
The clients worth knowing
- Termius (iOS, Android, and desktop). The free Starter plan covers real work: SSH, SFTP, port forwarding, mosh, and a local vault of hosts. The $10/mo Pro plan’s headline is syncing hosts and keys across devices; the free tier keeps everything local to the phone. Termius’s own AI-agents-on-mobile guidance is the tmux pattern, down to a startup command that drops you straight into the session.
- Blink Shell (iOS/iPadOS, $19.99/yr, open source). The power pick: first-class mosh, real key management. Private keys live in the iOS Keychain, and it can generate Secure Enclave keys that cannot be extracted by any app or person, only used to sign. Plus ssh-agent, tunnels, and a desktop-grade terminal.
- Prompt 3 (Panic; $9.99/yr or $49.99 once). Polished, supports mosh and Eternal Terminal, syncs via Panic Sync.
- On Android: Termius covers it with the same tiers, and Termux gives you an actual Linux environment with an ssh client: a different tool, but the native option.
(Curiosities you’ll meet in search results: a-Shell and iSH put a local Unix shell on the phone. Fun, but they’re not what you want for reaching a server.)
The setup that holds together
On the server, install mosh and tmux, and run anything long-lived inside tmux. On the phone, generate a key in the client (Secure Enclave if offered), add the public half to the server, and connect with mosh rather than plain SSH. Then the failure story becomes boring: iOS kills the app → mosh reattaches in a second → tmux never noticed. Keys-only auth also means the background noise of automated SSH login attempts stays noise.
What’s usually on the other end
The reason this toolkit had a renaissance is agents: a coding agent in tmux on an always-on box, checked from a phone on the train, the exact pattern in our Claude Code on a VPS guide. It works, and it also shows the terminal’s limits plainly: tiny type, thumb-hostile copy-paste, and you as the session’s operator. That operator role is the part managed agent hosting exists to absorb, but if you enjoy driving, this is the kit that makes phone-driving workable.