Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

Terminal Emulators for Android: Run Linux Commands on Your Phone

The terminal apps for Android worth knowing: Termux and UserLAnd for a Linux environment on the phone, ConnectBot and Termius for reaching servers over SSH.

3 min readBy Daniel

Reviewed by the AmazingRDP technical team

Terminal emulators for Android

A phone terminal is at its best with a server to connect to. A Linux VPS comes with root access over SSH. See Linux VPS from $6.99

Android is built on a Linux kernel, and it hides the command line. A terminal app brings one back. The apps fall into two groups that do different jobs, and most people who use a terminal on a phone end up with one of each.

Two kinds of terminal app

KindWhat it doesApps
A Linux environment on the phoneRuns Linux tools on the device itself: shells, Python, Git, editorsTermux, UserLAnd
An SSH clientConnects to another computer and shows its command lineConnectBot, Termius, JuiceSSH

Termux

The one to start with. Termux is a terminal with its own package manager and thousands of packages, and it needs no root access. Install it from the source its developers recommend (F-Droid or GitHub). First steps:

pkg update && pkg upgrade
pkg install git python openssh
termux-setup-storage

The last line gives Termux access to the phone's shared storage. From there it behaves like a small Linux machine: write scripts, clone repositories, and connect to servers:

ssh user@203.0.113.10

With the package proot-distro, Termux can also run complete distributions such as Debian or Ubuntu. AnLinux is a helper app that prepares those installation commands for you: see running Linux on Android with AnLinux.

UserLAnd

Installs a full distribution (Ubuntu, Debian, Kali and others) with a few taps, without Termux, and can show a graphical desktop through a built-in viewer. Easier to begin with, less flexible later. It is the successor of GNURoot Debian, which is no longer maintained: see what replaced GNURoot Debian.

Android's own Linux terminal

Recent Android versions on some phones, Google's Pixel models first, include a "Linux development environment" that can be switched on in the developer options. It runs Debian in a small virtual machine. It is worth a look if your phone offers it; availability depends on the device and Android version.

ConnectBot

A free, open-source SSH client that has been around for many years. It does one thing: connect to servers, with password or key login and port forwarding. Small and dependable.

Termius

A polished SSH client with saved hosts, groups, snippets and SFTP file transfer. The basic app is free; syncing hosts between devices is part of a paid plan. Also available for desktop systems.

JuiceSSH

For years the favourite SSH client on Android. It still works, and it has received few updates lately; check the date of the last update before relying on it.

Terminal Emulator for Android

The old classic that only opens Android's own built-in shell, with its small set of commands and no package manager. It is no longer developed. Termux does everything it did and far more.

Which one?

  • Learn Linux commands, write scripts on the phone: Termux.
  • A full distribution with the least effort: UserLAnd.
  • Only connect to servers: ConnectBot, or Termius if you manage many.
  • Both: Termux alone, since it includes ssh.

Make it comfortable

  • A Bluetooth keyboard changes everything. Without one, Termux's extra key row (Ctrl, Tab, arrows) helps.
  • Use SSH keys in place of passwords: ssh-keygen -t ed25519, then ssh-copy-id user@server.
  • On the server, work inside tmux, so that a dropped mobile connection does not end your session.
  • Android stops background apps to save battery. In Termux, pull down the notification and tap "Acquire wakelock" for a long job.

A phone and a small server make a complete workplace: the phone is the screen, the server does the work. See our Linux VPS plans. Related: the Ghostty terminal for the desktop.

Questions

What is the best terminal emulator for Android?

Termux. It gives you a Linux environment with a package manager and includes an SSH client.

Do I need root to use Termux?

No. Termux works on a normal, unrooted phone.

How do I connect to a server from an Android phone?

With an SSH client such as ConnectBot or Termius, or with the ssh command in Termux.

Can I run a full Linux distribution on Android?

Yes, with UserLAnd or with proot-distro in Termux.