MOBILE SSH • CLOUD SERVERS • AUTOMATION

Update a cloud server from your phone.

Ever wanted to check on a cloud server, restart a service, or run a safe update from your cell phone? Termius turns your phone into a pocket SSH client for managing Linux servers when you are away from your laptop.

Termius SSH

user@vps:~$ ssh server

admin@cloud:~$ sudo apt update

Hit:1 deb.debian.org bookworm InRelease

admin@cloud:~$ sudo systemctl status nginx

active (running)

Use case

Quick server checks, package updates, service restarts, log reviews, and emergency fixes when you only have your phone.

Best habit

Use SSH keys, avoid root login when possible, and save common commands as reusable snippets instead of retyping long commands on a touchscreen.

Automation angle

Termius is not just for typing commands. It can become a launchpad for scripts, aliases, maintenance commands, and repeatable server workflows.

STEP 1

Install Termius and create a host entry.

Termius is an SSH client. SSH is the secure remote login method that lets you connect from your phone to a Linux server over the internet.

Basic idea: your phone runs Termius, Termius connects to your server, and the server gives you a command-line shell.
  1. Install Termius on your phone.
  2. Create a new host.
  3. Enter your server IP address or domain name.
  4. Enter the SSH username, such as admin, debian, or ubuntu.
  5. Set the SSH port. The default is 22, but your server may use a custom port.
  6. Add your SSH key or choose the credential method you use for that server.
  7. Save the host and test the connection.

STEP 2

Use SSH keys instead of typing passwords.

Password login works, but SSH keys are better for real server work. A key-based setup avoids typing your server password on a phone keyboard and reduces the risk of weak or reused passwords.

On your server, your public key usually goes here:
~/.ssh/authorized_keys

For a student setup, the important point is simple: keep the private key private, put only the public key on the server, and protect the key with a passphrase when possible.

STEP 3

Run safe server checks from your phone.

Start with read-only checks before running commands that change the system.

Check uptime

uptime

Check disk space

df -h

Check memory

free -h

Check listening ports

ss -lntp

Check failed logins

sudo journalctl -u ssh --since "1 hour ago"

Check web server status

sudo systemctl status nginx --no-pager

STEP 4

Update a cloud server carefully.

Updating from a phone is useful, but do it carefully. A phone is fine for routine maintenance, not for major risky upgrades.

Debian / Ubuntu safe update flow
sudo apt update
apt list --upgradable
sudo apt upgrade
Avoid doing major distribution upgrades from your phone. Commands like do-release-upgrade or large database migrations are better done from a laptop with a stable connection and backups ready.

AUTOMATION

Turn phone SSH into repeatable workflows.

The real power is not typing everything manually. The better approach is to create small server-side scripts, aliases, or snippets that run a known sequence safely.

1

Save commands as snippets

Store commands you run often, such as service checks, log views, updates, and backup status checks.

2

Move complex work into scripts

Instead of typing five commands on a phone, write one script on the server and run it when needed.

3

Schedule routine work

Use systemd timers or cron for recurring jobs so your phone is only used to check status or trigger manual tasks.

Example: one command to check a web app
sudo systemctl status nginx --no-pager
sudo systemctl status gunicorn --no-pager
curl -I https://example.com

A better version is to put those commands in a script like check-site.sh, then run the script from Termius:

Run a saved maintenance script
./check-site.sh

EXAMPLE SCRIPT

Create a simple server health script.

Put this on your server as server-check.sh. It gives you a quick snapshot of uptime, disk, memory, failed SSH messages, and web service status.

server-check.sh
#!/usr/bin/env bash
set -euo pipefail

echo "== Host =="
hostname
uptime

echo
echo "== Disk =="
df -h /

echo
echo "== Memory =="
free -h

echo
echo "== Listening Ports =="
ss -lntp

echo
echo "== SSH Logs: Last Hour =="
sudo journalctl -u ssh --since "1 hour ago" --no-pager | tail -40

echo
echo "== Web Server =="
sudo systemctl status nginx --no-pager || true
Make it executable
chmod +x server-check.sh
Run it from Termius
./server-check.sh

SAFETY RULES

Do not turn convenience into a security problem.

Do not save root passwords

Use a normal user with sudo. Disable root SSH login on public servers when possible.

Use SSH keys

Key-based login is cleaner and safer than typing passwords repeatedly on mobile.

Protect the phone

Use a strong passcode and biometric lock. If the phone is lost, saved server access becomes a serious risk.

Keep dangerous commands out of snippets

Do not save destructive commands like rm -rf, disk formatting, or firewall resets as easy-tap snippets.

WHAT THIS UNLOCKS

Your phone becomes a small admin console.

Once your host entry, SSH keys, and scripts are set up, you can safely do small maintenance tasks from anywhere:

The goal is not to do everything from a phone. The goal is to make routine server checks and safe maintenance possible when you are away from your main machine.