SFTP on Android: transfer files to a server

SFTP lets you move files between an Android phone and any server that runs SSH, with nothing extra to install on the server. Open an SFTP client on the phone, connect with the same address, user name and password or key you use for SSH, then browse, download and upload files.

This guide covers the setup, the transfer steps, the command-line way, and the errors people hit most.

SFTP, FTP and SCP in one minute

If you can SSH into a server, SFTP already works.

Step 1: Confirm SFTP is available on the server

On the server, check that the SFTP subsystem is configured:

grep -i subsystem /etc/ssh/sshd_config

You should see a line such as:

Subsystem sftp /usr/lib/openssh/sftp-server

or Subsystem sftp internal-sftp. Either is fine. If the line is commented out, remove the # and restart SSH with sudo systemctl restart ssh.

Step 2: Connect from the phone

Enter the same details you would use for SSH:

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

You land in the user's home folder, for example /home/deploy.

Step 3: Download a file to the phone

  1. Browse to the folder, for example /var/log or ~/backups.
  2. Select the file and choose download.
  3. Open it from the phone's storage once the transfer completes.

This is handy for grabbing a log, a database dump or a config file to read later or share.

Step 4: Upload a file from the phone

  1. Browse to the target folder on the server.
  2. Choose upload and pick a file from the phone.
  3. Wait for the transfer to finish before closing the app or leaving the network.

Uploads go wherever your user has write permission. For a web root such as /var/www/html you may need to change ownership first (see below).

The command-line way

If you are already in an SSH terminal, you can pull and push files with the built-in tools.

Copy a file from the server to another machine:

scp deploy@192.168.1.30:/home/deploy/report.csv .

Copy a whole folder:

scp -r deploy@192.168.1.30:/home/deploy/site ./site

Use the interactive sftp shell:

sftp deploy@192.168.1.30
sftp> ls
sftp> get report.csv
sftp> put notes.txt
sftp> bye

For large or repeated transfers, rsync only sends what changed:

rsync -avz ./site/ deploy@192.168.1.30:/var/www/site/

Fixing common SFTP errors

Permission denied on upload Your user cannot write to that folder. Check the owner:

ls -ld /var/www/html

Give your user access, for example:

sudo chown -R deploy:deploy /var/www/html

or add your user to the group that owns it.

Connection closed right after login Something in the shell startup prints text (for example an echo in ~/.bashrc), which breaks the SFTP protocol. Wrap it so it only runs in interactive shells:

if [[ $- == *i* ]]; then echo "welcome"; fi

Timed out The phone cannot reach the server. Check the address, the firewall on port 22, and whether you are on the same network or VPN.

Doing it with ShellPilot

ShellPilot is an SSH client and SFTP file manager for Android that needs no account or sign-up. Your connections and keys stay on the phone.

  1. Save the server as a connection once, with a password or an Ed25519 or RSA SSH key.
  2. Open the SFTP file manager on that connection to browse remote folders.
  3. Browse and download remote files for free.
  4. With Pro, upload from the phone, rename, create folders and delete files.
  5. Mark favorite paths and use recent folders to get back to places like /var/www or ~/backups in one tap.
  6. Switch to the terminal on the same connection when you need chown, rsync or tar.

Get ShellPilot on Google Play

FAQ

Is SFTP the same as FTP over SSL? No. FTP over SSL (FTPS) is FTP with encryption added and needs an FTP server. SFTP is part of SSH and needs no extra server software.

Can I use SFTP with a key instead of a password? Yes. SFTP uses the same login as SSH, so any key that works for SSH also works for SFTP.

How do I transfer a whole folder? Compress it first on the server with tar -czf site.tar.gz site/, download the single archive, and extract it where you need it. Over a phone connection one archive is more reliable than hundreds of small files.

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