Overview
LingCode runs Claude Code inside tmux when available. That lets you SSH into your Mac from your iPad or phone and attach to the same session. You see the same terminal, type prompts, and control Claude Code remotely.
iPad users: LingCode has built-in Remote Control with a Termius-style host list. Add your Mac, save it, tap to connect. No separate SSH app needed.
Prerequisites
Tailscale makes your Mac reachable from your phone over the internet. Same Wi-Fi? You can skip Tailscale and use your Mac's local IP instead. SSH client: Use LingCode iPad's built-in Remote Control, or Termius / Blink / JuiceSSH.
- LingCode with a Claude Code tab open
- tmux installed on your Mac:
brew install tmux - Tailscale on Mac and phone (same account) — or same Wi-Fi + local IP
- Remote Login (SSH) enabled on your Mac
- LingCode iPad app (built-in Remote Control) or SSH client (Termius, Blink, JuiceSSH)
Step 1: Install Tailscale on your Mac
Download and sign in
Get the Mac app from tailscale.com/download/mac. Open it and sign in. Verify with:
tailscale status
You should see your Mac listed. Get its IP:
tailscale ip -4
Example: 100.116.50.10
Step 2: Install Tailscale on your phone
Same account
Install Tailscale from the App Store (iOS) or Play Store (Android). Sign in with the same account as your Mac. Your phone and Mac will be on the same virtual network.
Step 3: Enable Remote Login (SSH) on your Mac
System Settings
Open System Settings → General → Sharing. Turn on Remote Login. Ensure your user (or "All users") is allowed.
Step 4: Connect from your phone
LingCode iPad (built-in)
If you use an iPad, the LingCode app has built-in Remote Control with a Termius-style host list. No separate SSH client needed.
- Open LingCode on iPad, tap the menu, then Remote Control
- Tap Add host and enter: Host (Tailscale IP), Port (22), Username, Password
- Tap a host to connect. Swipe to edit or delete saved hosts.
Or use Termius / Blink / JuiceSSH
Install Termius (iOS/Android) or another SSH client. Add a new host:
- Host: Your Mac's Tailscale IP (e.g.
100.116.50.10) - Username: Your Mac username (e.g.
weijiahuang) - Port: 22
For passwordless login, use SSH keys (see Support for key setup).
Step 5: Install tmux and open Claude Code
On your Mac
brew install tmux
Open LingCode, then open a Claude Code tab (or create a new one). The tab header will show:
Remote: tmux attach -t lingcode-12345678
Note the session name (e.g. lingcode-12345678). If you see "Remote: brew install tmux" instead, tmux is not installed yet.
Step 6: SSH and attach
LingCode iPad
Tap your saved host to connect. You get a shell. To attach to Claude Code, type tmux attach -t lingcode-12345678 (session name from the Claude Code tab on your Mac). Detach with the Detach button or Ctrl+b then d.
Termius / other SSH clients
Connect to your Mac. When prompted for the host key, tap Continue. Enter your Mac password (or use your SSH key). Once connected, run (replace with your session name from LingCode):
tmux attach -t lingcode-12345678
You'll see the same Claude Code session. Type prompts, run commands. Detach with Ctrl+b then d to leave it running on your Mac.
Troubleshooting
Tailscale: "failed to connect to local Tailscale service"
Tailscale isn't running. Use the official Mac app from tailscale.com/download/mac instead of Homebrew. Open the app and sign in.
SSH: "Authentication failed (password)"
Use your Mac's login password (not Apple ID). Or set up SSH keys: run ssh-keygen -t ed25519 -f ~/.ssh/phone_key -N "", add the public key to ~/.ssh/authorized_keys, then add the private key in Termius.
Remote Login: "requires Full Disk Access"
Use System Settings → General → Sharing → Remote Login instead of the command line.
"no such session" when attaching
Ensure a Claude Code tab is open in LingCode and tmux is installed. Close and reopen the Claude Code tab after installing tmux.