Your phone has more computing power than the home server behind this site, and it is already carrying an SSH client if you install one app.

Termux is that app, and it turns Android into something you can actually type at. Not a toy shell, not a remote desktop: a real terminal with a package manager, running in the app sandbox without root.

What Termux Actually Is

Termux is a terminal emulator bundled with its own Linux userland. Packages install into the app’s private storage, so nothing touches the system partition and nothing needs unlocking.

That means you get ssh, mosh, tmux, rsync, git, editors and most of what you would expect on a server. It also means you cannot change anything about Android itself, which is the trade that makes it safe.

Installing What You Need

Install it from F-Droid, not the Play Store, even though it is on both.

Google Play removed Termux for policy reasons years ago and allowed it back in June 2024 for Android 11 and up, but the Termux wiki still describes that build as under development with limitations, and points most users at F-Droid.

One trap worth knowing. The Play version and the F-Droid version are signed with different keys, so they cannot update each other. If you switch, you must uninstall first, and you lose the app’s data when you do.

Pick your source before you start filling it with keys.

Once it is installed, one command sets up the rest.

pkg update && pkg install openssh mosh tmux

Keys Instead Of Passwords

A small brass key lying on a smartphone screen next to a notebook
Generate it once on the phone. Never type a server password on a screen again.

Generate a key on the phone, once.

ssh-keygen -t ed25519 -C phone

Then copy the public half to your server, either with ssh-copy-id or by pasting it into ~/.ssh/authorized_keys. From then on the phone logs in without a password, and you never type a server credential on a touchscreen in public.

That last part is the real reason to bother. Passwords typed on phones are visible, auto-corrected and often reused.

Staying Connected When Wifi Drops

Plain SSH dies the moment you walk from the kitchen to the garden, and everything you were running dies with it.

Two tools fix that. mosh keeps the session alive across network changes and reconnects without dropping it, and tmux keeps the session alive on the server regardless of what the client does. Together they mean you can start a long job, pocket the phone, and pick it up on a different network later.

That combination is the whole reason a phone terminal is useful rather than a novelty.

What It Is Bad At

Honest list, because the phone is not a laptop.

  • Typing. Long commands on a touchscreen are miserable. Learn the tab completion and history shortcuts, or use a Bluetooth keyboard.
  • Background survival. Android will kill the app to save battery. Expect to lose sessions unless you exempt Termux from battery optimisation.
  • Screen real estate. Reading logs on a five inch screen works. Editing config files does not.
  • Anything requiring root. By design, and that is a feature.

The Server In Your Pocket

I came to this late, and by an odd route.

Years ago I was flashing firmware with Odin, and I bricked a Nexus on KitKat doing it. I installed things from F-Droid and from places I should not have, back when lockdown gave everyone too much free time. The end of that road, for me, was a stock Motorola that I have not tampered with at all.

Termux is the useful part of that era with the risk removed. You do not need root, you do not need a custom ROM, and you do not need to risk a brick to get a shell on the train.

Key Takeaways

  • Termux gives you a real terminal without root or a custom ROM.
  • Install from F-Droid. The Play build is the project’s own second choice.
  • Play and F-Droid builds use different signing keys, so switching means uninstalling.
  • Keys plus mosh plus tmux is the setup worth having.
  • The phone is a client. Keep the work on a machine that stays plugged in.

LEAVE A REPLY

Please enter your comment!
Please enter your name here