SSH client for Android

Termexa connects an Android phone, tablet or foldable to the servers you already use, over SSH. This page walks through adding a host and signing in, then covers what the terminal does once you are connected.

Why SSH on a phone is usually painful

Connect to a server in four steps

  1. Add a host. On the Terminals screen, tap ☰ to open Connections, then tap Remote terminal · Add new SSH host and enter an alias, the address (domain or IP), the port and the username. You can also set a Command to run after login, such as tmux new -A -s main.
  2. Choose how to sign in. Generate a new Ed25519 key on the phone and copy its public key to the server, import an existing private key (Ed25519, RSA or ECDSA, with its passphrase if it has one), or use a password. When a server asks extra questions, such as a one-time code (keyboard-interactive), Termexa shows the server's prompt and sends your answer.
  3. Check the server key. On the first connection Termexa shows the server's key fingerprint. Compare it with the server before tapping Trust. From then on the key is checked every time, and if it changes Termexa stops instead of connecting.
  4. Type with the toolbar. The two-row toolbar under the terminal has Esc, Tab, Ctrl, Alt, Shift, Page Up/Down and arrows. Tap Ctrl, then a key, for a combination such as Ctrl+C. To keep Ctrl on for several keys, add the Ctrl Lock key in Settings → Shortcut panel.

Example: add the generated key to the server

After Generate new key, tap Copy public key and run this on the server as the same user:

mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo 'PASTE-THE-PUBLIC-KEY-HERE' >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

To compare the fingerprint Termexa shows on first connect, print the server's own:

ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub
Illustration of the Termexa terminal and toolbar, drawn from the app's layout. Not a screenshot.

What else the SSH client does

Frequently asked questions

Which Android versions does Termexa support?

Android 13 or later, on phones, tablets and foldables.

Which SSH key types can I use?

You can import Ed25519, RSA and ECDSA private keys, including encrypted ones, or generate a new Ed25519 key in the app.

Does it work with servers that ask for a one-time code?

Yes. Keyboard-interactive prompts such as OTP codes are shown as the server words them, and your answer is sent to the server.

Which kinds of port forwarding are supported?

Local port forwarding only: a port on the phone's 127.0.0.1 forwarded through a saved host. Remote and dynamic (SOCKS) forwarding are not supported.

Does Termexa support mosh or SSH agent forwarding?

No. Termexa connects over SSH only, and SSH agent forwarding is not available.

Are my passwords or keys sent to the developer?

No. They are stored encrypted on the phone and are only used to sign in to the servers and jump hosts you choose. There is no developer-operated server.

Related guides

Try Termexa

Android 13+ · No account · No ads · No tracking

Get it on Google Play Coming soon Getting started