← All articles
2026-05-04·10 min read

How to SSH from iPhone & iPad: The Complete 2026 Guide

You're away from your desk. A server goes down. You've got your iPhone. Three years ago, you'd be panicking. Today, you've got options.

Here's how to SSH from iOS — from generating your first key to managing files visually.


Step 1: Generate an SSH Key (The Secure Way)

You need an SSH key pair: a public key that goes on your server, and a private key that stays on your device.

If you already have keys: Most iOS SSH clients let you import standard OpenSSH format keys via AirDrop, Files app, or paste. Skip to Step 2.

If you're creating new keys: Open your SSH client and look for "Generate Key" or "Create Key." Choose Ed25519 — it's faster and more secure than RSA, and works everywhere.

AlgorithmSecuritySpeedRecommendation
RSA 4096GoodSlowLegacy, avoid for new keys
ECDSAGoodFastWorks, but Ed25519 is better
Ed25519BestFastest**Use this**

Critical security advice: If your SSH client supports it, generate the key inside the Secure Enclave. This means the private key is created and stored in Apple's dedicated hardware security chip — it never touches the main CPU, RAM, or filesystem. Even if malware compromises your phone, the key can't be extracted.

Tapssh, for example, generates all keys inside the Secure Enclave by default. Blink and Termius store keys in the iOS Keychain (software-protected, but not hardware-isolated).


Step 2: Copy Your Public Key to the Server

Your public key is a string that looks like:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... yourname@device

You need to put this on your server in ~/.ssh/authorized_keys.

Option A: From the SSH app itself. Most clients have a "Copy Public Key" button. Tap it, then paste into your server somehow (see options below).

Option B: ssh-copy-id from a computer. If you have access to a machine that can already SSH in:

ssh-copy-id -i ~/.ssh/your_key.pub [email protected]

Option C: Manual. If you're locked out and only have your phone, you might need a web-based server management panel (like your hosting provider's console) to paste the key.


Step 3: Connect to Your Server

Open your SSH client, tap "New Connection" or "+", and enter:

- Host: Your server IP or domain (e.g., 198.51.100.42 or server.yourdomain.com)

- Port: Usually 22 (leave default unless you changed it)

- Username: Usually root, ubuntu, or your username

- Authentication: Select the key you just created

Pro tip: If your server uses a non-standard SSH port (security best practice), make sure to change it from 22. Most clients default to 22.

Tap connect. If everything is configured correctly, you'll see a terminal prompt. You're in.


Step 4: Basic Commands You'll Actually Use on Mobile

Typing on glass isn't fun. Here are the commands worth memorizing — and some mobile-friendly alternatives:

System Health

# What's using CPU/RAM? (q to quit)
htop

# Disk space?
df -h

# What's running?
docker ps   # if using Docker
pm2 list     # if using PM2

Service Management

# Restart a service
sudo systemctl restart nginx

# Check logs (last 50 lines)
journalctl -u nginx --no-pager -n 50

# Docker logs
docker logs container-name --tail 50

File Operations (Without SFTP)

# Find large files
du -sh /* 2>/dev/null | sort -h

# Edit a config (nano is easier on mobile than vim)
nano /etc/nginx/sites-enabled/yoursite.com

# Check disk I/O
iostat -x 1

Mobile-Friendly Tip

Create aliases for the commands you run most often. Add these to ~/.bashrc or ~/.zshrc on your server:

alias restart-web='sudo systemctl restart nginx'
alias logs='journalctl -u nginx --no-pager -n 50'
alias dfree='df -h /'
alias docklog='docker logs --tail 50'

Now instead of typing a 40-character command, you type an 8-character alias.


Step 5: Manage Files Visually (SFTP)

Typing ls -la and hoping you're in the right directory is not a good mobile experience. Use a visual SFTP browser instead.

What a good SFTP browser gives you:

- Directory tree you can tap through (like Files app)

- Drag and drop to upload files from your iPhone

- Image preview without downloading first

- Multi-select for batch delete, rename, or permission changes

- File size and modification date at a glance

Tapssh has a dedicated split-pane mode: terminal on the left, file browser on the right. Termius has a decent built-in SFTP view. Blink is terminal-only — you'll need a separate app for file transfers.

Uploading a file from iPhone:

1. Open the SFTP browser and navigate to your target directory

2. Tap the upload button (usually a ↑ or +)

3. Select the file from your Files app, Photos, or iCloud

4. The file transfers. That's it. No scp command needed.


Step 6: Stay Secure

Lock the app. Enable biometric lock (Face ID / Touch ID) so the app requires authentication every time you open it — and auto-locks when you background it.

Use key-based auth only. Disable password authentication on your servers once you've set up SSH keys. Edit /etc/ssh/sshd_config:

PasswordAuthentication no
PubkeyAuthentication yes

Then restart SSH: sudo systemctl restart sshd

Don't store keys in iCloud (unless they're encrypted at rest). Some apps sync everything through iCloud, including private keys. This means your keys exist on Apple's servers. Choose an SSH client that either doesn't sync keys at all, or encrypts them before syncing.


Troubleshooting Common Issues

"Connection refused" — Server isn't running SSH, or port 22 is blocked. Check your firewall (UFW, iptables, cloud provider security group).

"Permission denied (publickey)" — Your public key isn't in authorized_keys, or the permissions are wrong. On the server: chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.ssh

"Host key verification failed" — The server's fingerprint changed (possibly a man-in-the-middle attack, usually a server rebuild). Remove the old key from ~/.ssh/known_hosts or acknowledge the new fingerprint in your client.

"Connection timed out" — Server is unreachable. Check if it's running, if the IP changed, or if your network blocks outbound SSH.


The Bottom Line

SSH from an iPhone used to be an emergency-only thing — something you did while squinting and cursing. In 2026, with a proper native client, it's genuinely usable for daily server management.

Key-based auth, visual SFTP, and Secure Enclave key storage are the three features that make the difference between "I guess this works in a pinch" and "I actually prefer this for quick tasks."


This guide was written for Tapssh, an iOS-native SSH & SFTP client launching Q3 2026. Free tier available.