A phone is not where you want to do a day's server work, but it is perfect for quick checks and emergencies: restarting a stuck service, reading a log, or freeing disk space while you are away from your desk. This guide covers the main SSH apps for Android and iPhone, how to log in with a key, how to reach keys such as Ctrl and Tab, and habits that keep mobile fixes safe.
Before you start
- Your VPS IP address, username and password from the service page in your VPS provider's control panel. Your VPS provider's control panel works in a mobile browser too.
- An SSH app from your device's app store (see below).
- Ideally, key login already working from your computer. See Set up SSH keys.
Note: The apps below are third-party products. Features and pricing change, so check each app's store page for what is free and what needs a subscription.
Choose an app
- Termius (Android and iOS): a polished client with a host list, key storage, snippets and optional sync with the desktop app. Good if you already use Termius on your computer. See Set up Termius.
- JuiceSSH (Android): a long-standing Android client with a configurable extra-keys bar and support for SSH keys.
- Blink Shell (iOS and iPadOS): a terminal aimed at power users, with strong keyboard support and Mosh, which keeps sessions alive when your phone changes networks.
- Termux (Android): a full Linux environment on Android. Install
opensshinside it and use the normalsshcommand, exactly as on a computer.
Any of these work with a Linux VPS. Pick the one that feels comfortable.
Make your first connection
The steps are almost identical in every app:
- Add a new host or connection.
- Enter the IP address, for example
203.0.113.10. - Enter the port:
22, or your custom SSH port. - Enter the username, such as
rootordeploy. - Save and tap the host to connect.
- Accept the host key fingerprint the first time, then enter the password.
When you see the shell prompt, you are connected.
Use an SSH key on your phone
You have two options.
Generate a key on the phone (recommended)
Most apps can create a key pair. Choose Ed25519, set a passphrase, and copy the public key. Then add it to the server from your computer, or from the phone while logged in with the password:
mkdir -p ~/.ssh && chmod 700 ~/.ssh
nano ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keysPaste the public key on its own line in nano before saving. A separate key per device means you can revoke the phone's access alone if it is lost, simply by deleting its line from authorized_keys.
Import an existing key
Apps can import a private key from a file or the clipboard. Only do this if you must, and transfer the file securely, for example over a USB cable or through an encrypted password manager. Never email a private key to yourself.
Find special keys
Phone keyboards lack many keys the terminal needs. Apps add an extra row above the keyboard with Ctrl, Esc, Tab, arrow keys and symbols such as | and ~. Useful combinations:
- Tab: complete file and command names. It saves a lot of typing on a small screen.
- Ctrl + C: stop a running command.
- Ctrl + D: log out.
- Ctrl + O, Ctrl + X: save and exit in nano.
- Esc then
:wq: save and quit in Vim. - Arrow up: repeat earlier commands.
In JuiceSSH, Blink and Termius, the extra key row can be customised. Volume keys can often be mapped to arrow keys or Ctrl too.
A Bluetooth keyboard turns a phone or tablet into a usable terminal for longer sessions.
Safe emergency fixes from a phone
Small screens and autocorrect make typos more likely. A few habits help:
- Turn off autocorrect in the app or keyboard settings. It loves turning
lsintois. - Prefer read-only checks first. Look before you change anything:
uptime
df -h /
free -h
systemctl --failed- Restart rather than reconfigure. Restarting a service is a safe, reversible fix you can do from a phone:
sudo systemctl restart nginx
sudo systemctl status nginx --no-pager- Save multi-step fixes as snippets in your app, tested on your computer first, so you tap instead of type.
- Leave risky changes for a keyboard. Firewall rules, SSH config and deleting files are better done later at a desk.
- Use tmux for long tasks. If your phone loses signal, a command running inside
tmuxkeeps going. See Keep processes running after SSH disconnects.
Warning: If the server stops responding to SSH entirely, do not keep retrying. Open your VPS provider's control panel in your phone's browser and use the power controls or the browser console from the control panel.
Protect the phone
- Lock the SSH app with a PIN or biometrics if it offers that.
- Use a key with a passphrase rather than a saved password.
- If the phone is lost, remove its key line from
~/.ssh/authorized_keyson every server.
Check it works
- Connect to your server from the app.
- Run
uptimeanddf -h /and confirm you get output. - Press Ctrl + D from the extra key row to log out cleanly.
Troubleshooting
- Connection times out on mobile data but works on Wi-Fi: some mobile networks block certain ports. Try another network and confirm the server is reachable.
- Session drops when the screen turns off: mobile operating systems pause background apps. Use tmux on the server, or Mosh in apps that support it.
Permission denied (publickey): the phone's public key is not in the server user'sauthorized_keys, or the wrong key is selected for the host.- Text is too small: pinch to zoom, or raise the font size in the app's terminal settings.
