SSH from an Android phone to a Linux server

To SSH from an Android phone to a Linux server, make sure the OpenSSH server is running on the Linux machine, then connect from an SSH app on the phone with the server's address, port 22 and your Linux user name. Use a password the first time and move to an SSH key once it works.

This guide covers Ubuntu, Debian and Fedora style servers, and the habits that make a phone terminal pleasant to use.

What you need

Step 1: Install and start the SSH server on Linux

Most VPS images already run SSH. On a desktop install you may need to add it.

Ubuntu and Debian:

sudo apt update
sudo apt install openssh-server
sudo systemctl enable --now ssh

Fedora, Rocky and AlmaLinux:

sudo dnf install openssh-server
sudo systemctl enable --now sshd

Check that it is listening:

sudo ss -tlnp | grep ssh

Step 2: Find the address to connect to

On a machine in your home or office:

hostname -I

For a VPS, use the public IP shown in your provider's dashboard, or a domain name that points to it.

Remember that private addresses (192.168.x.x, 10.x.x.x, 172.16.x.x to 172.31.x.x) only work when the phone is on the same network or connected through a VPN.

Step 3: Allow SSH through the firewall

sudo ufw allow 22/tcp

On firewalld systems:

sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --reload

A cloud server also needs port 22 open in its provider firewall or security group.

Step 4: Connect from the phone

In your SSH app create a connection with:

Field Example
Host 192.168.1.30 or server.example.com
Port 22
User deploy
Auth password, or a private key

The first time you connect, the app shows the server's host key fingerprint. To confirm it is really your server, run this on the server and compare the result:

ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub

Accept the key and you are in.

Step 5: Move to key login

Keys are safer than passwords and you will not type a password on a phone keyboard again.

  1. Generate an Ed25519 key in your SSH app.
  2. Copy the public key.
  3. On the server, add it to your user's authorized keys:
mkdir -p ~/.ssh && chmod 700 ~/.ssh
echo "PASTE-PUBLIC-KEY-HERE" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
  1. Attach the key to the connection on the phone and reconnect.

When it works, consider turning off password login in /etc/ssh/sshd_config:

PasswordAuthentication no

Then restart SSH with sudo systemctl restart ssh (or sshd). Keep your current session open while you test a new one, so a mistake cannot lock you out.

Step 6: Make the phone terminal comfortable

A few habits help a lot on a small screen:

Doing it with ShellPilot

ShellPilot is an SSH client, SFTP file manager and server manager for Android. It needs no account and no sign-up, and your connections and keys stay on your phone.

Get ShellPilot on Google Play

When it does not connect

FAQ

Is SSH from a phone secure? Yes, the connection is encrypted the same way as from a laptop. The weak points are the account password and the phone itself, so use key login and a screen lock.

Can I SSH into a Windows PC from Android? Yes. Windows 10 and 11 include an optional OpenSSH Server feature. Turn it on in Settings under Optional features, start the sshd service, then connect with your Windows user name.

Do I need root on the phone? No. An SSH client is an ordinary app and needs no root or special setup on Android.

We use cookies

We use cookies and similar technologies to enhance your browsing experience, analyze site traffic, and personalize content and ads. By clicking "Accept", you consent to our use of cookies. Learn more in our Privacy Policy.

cosmovexhome.md
Get the app

~/cosmovex/untitled.md unsaved

Your work keeps moving.So should you.

Built for the hours spent watching a terminal wait. Something new from this studio is nearly ready — and it isn't for your desk.

Be first to hearComing soon. Details land in the studio newsletter — the same one below, nothing extra to join.
Meanwhile, the toolkit

~/cosmovex/home.md · rendered with Markdown Editor & MD Viewer

A Markdown editor good enough to write its own homepage.

This page is a Markdown document. You're reading the rendered preview — press or hit if you don't believe it. That round trip — plain text in, a clean document out — is what Markdown Editor & MD Viewer does on your Android phone. Free, offline, no account.

markdown Live Server — 2 editors, 1 file
# Two cursors, one document
My phone is hosting this file over Wi-Fi,
and my desktop is ed
> nothing leaves the device — it's your Wi-Fi, your file
▶  Install free on Google Play★ 4.7 on Play · 10,000+ installs · free

## New in v1.5 — watch it work

✓Version History — every save snapshotted; browse and restore
✓Works offline — no account, no cloud — files stay on your device

## Just shipped

Both offline-first, both free to try.

## The rest of the toolkit

One app per job. No 200 MB do-everything bloat.

AppJobRating
Markdown Editor & MD ViewerWrite and preview Markdown on mobile.4.7★ · 5K+installios
WebEva: Build Websites & CodeBuild websites from your phone.4.4★ · 5K+installios
PDF Viewer & Editor - AIEdit, convert & sign PDFs on mobile.4.9★ · 1K+installios
HTML Viewer & Editor - CodeView & edit HTML on mobile.4.6★ · 1K+installios
SQLite Editor & SQL LearnerManage SQLite databases on mobile.5.0★ · 1K+install
Python IDE - Offline CompilerWrite and run Python on your phone.4.1★ · 1K+install
Aspenote: Offline Voice to TextIt writes it down. On your phone.—install
HostPilot: PHP Server & SQLTurn your phone into a web server.—install
DevBuddy: Offline Dev ToolkitYour pocket developer toolkit.—installios
ShellPilot - Batch SSH ClientSSH terminal & SFTP on the go.— · 1K+installios
API Client -REST & HTTP TesterTest APIs anywhere, anytime.— · 500+installios
JSON Editor - Viewer & FormatView, edit & format JSON instantly.— · 500+installios
Java & Kotlin Compiler IDEWrite and run Java on your phone.4.4★ · 1K+install
XML Viewer & EditorView, edit & validate XML on mobile.— · 5K+installios
Open CSV — Viewer & EditorOpen and edit CSV files on mobile.— · 500+installios
JavaScript Editor — React IDERun JavaScript and React on your phone.— · 1K+install
Image to SVG Converter, ViewerConvert images to SVG and edit vectors on mobile.— · 1K+install
YAML / YML Viewer & EditorView, edit & validate YAML instantly.— · 500+install
Network Toolkit: WiFi IP ToolsNetwork utilities and diagnostic tools.— · 500+install
Code Editor - Text & NotepadEdit text files on mobile.— · 500+install
C / C++ Compiler IDECompile & run C and C++ on your phone.—install
Diagram Maker: Flow & ERDDraw flowcharts & ERDs on mobile.—install
QR Scanner & GeneratorScan codes with confidence—install
Zip Extractor — Unzip RAR 7ZOpen ZIP, RAR, and 7Z files—install
PromptCrate: AI Prompt ManagerYour personal AI prompt library—install

## Free web tools

Background RemoverSnapglowSQLite ViewerQueryDrill

## Questions, answered

Is there a free Markdown editor for Android?

Yes — Markdown Editor & MD Viewer is free on Google Play. It gives you a split-view editor with live preview, syntax highlighting, and HTML/PDF export, and it works fully offline with no account.

Can I edit Markdown from my phone on a desktop browser?

Markdown Editor & MD Viewer includes a Live Server: your phone hosts the document over Wi-Fi and you edit it from any desktop browser with two-way live sync. The file never leaves your device.

Can I make Mermaid diagrams on Android?

Yes — the built-in Mermaid Studio turns plain text into flowcharts, sequence and class diagrams, with pan/zoom and SVG export, right on your phone.

Can I turn Markdown into slides or a PDF on my phone?

Presentation Mode turns any Markdown document into a fullscreen slide deck, and export produces styled HTML or print-ready PDF — all generated on-device.

## From the journal

We're a small studio with one rule: each app does a single job well, works offline, and never asks who you are.

## Stay in the loop


  1. All 25 apps
  2. Guides
  3. Journal
  4. About
  5. Contact
  6. Privacy
  7. Terms

© 2026 Cosmovex — EOF