SSH and Tmux guides: answers for running servers and agents from a phone
Plain answers to the SSH and Tmux questions that come up when you run a server or a coding agent and reach it from an iPhone, iPad or iPhone Duo. Each guide works from any terminal; where Shell Drop does something differently, the guide says so.
11 answers
- How do I SSH into a server from my iPhone?
Turn on SSH on the server, reach it over your network or Tailscale, connect with a password or a key, and run Tmux so the session survives drops. - How do I SSH from an iPad?
The same steps as a phone: SSH on at the server, Tailscale from outside the network, a key or password, and Tmux to stay connected; the guide also explains common connection errors. - How do SSH keys and agent forwarding work on an iPhone?
Generate an Ed25519 or Secure Enclave key on the phone, add the public key to the server, and approve forwarded signatures with Face ID. - How do I copy an SSH key to a server?
ssh-copy-id user@host appends your public key to ~/.ssh/authorized_keys; the guide covers the manual and Windows equivalents and permission fixes. - How do I use ~/.ssh/config?
Host blocks set HostName, User, Port, IdentityFile, ProxyJump and keepalives per server; check the result with ssh -G. - How does SSH port forwarding work (-L, -R, -D)?
-L brings a remote port to your machine, -R exposes a local port on the server, -D makes a SOCKS proxy; Shell Drop itself has no port forwarding. - What is Mosh, and do I need it instead of SSH?
Mosh keeps a session through roaming and sleep over UDP; SSH plus Tmux on the server keeps the work itself alive. Shell Drop is SSH only. - How do I attach to a Tmux session and detach without killing it?
tmux attach -t name to connect, Ctrl-b then d to detach; the session keeps running on the server. - How do I scroll up in Tmux?
Enter copy mode with Ctrl-b [ or turn on mouse mode; raise history-limit for more lines. In Shell Drop a vertical swipe scrolls. - What are the Tmux commands I need from a phone?
Attach, detach, list, kill, scrollback, mouse mode, set-titles and set-clipboard, with the stock Ctrl-b defaults. - What is an SSH MCP server, and is it safe?
An MCP server that runs commands on a remote host over SSH; it gives an agent shell access, so scope its key and user tightly.
- How do I SSH into a server from my iPhone?
More
Get Shell Drop on the App StoreReading on a computer? Scan the code with your iPhone camera.