Secure SSH from your iPhone to your Mac without exposing port 22 on Wi‑Fi or Ethernet. This setup runs a dedicated sshd bound to localhost and publishes it only inside your tailnet using Tailscale Serve.
tailscale-ssh.md- full guide with background, rationale, and step‑by‑step setuptailscale-ssh.sh- optional one‑shot installer script (macOS)
Minimum requirements:
- Install the Standalone Tailscale app
- Turn off macOS
Remote Login - Have an SSH key ready
If you want the complete walkthrough, start here:
Review the script before running it. It automates Steps 1‑4 from the guide.
Install:
curl -fsSL https://raw.githubusercontent.com/dawidstruzik/tailscale-ssh-macos/main/tailscale-ssh.sh | bash -s -- installUninstall:
curl -fsSL https://raw.githubusercontent.com/dawidstruzik/tailscale-ssh-macos/main/tailscale-ssh.sh | bash -s -- uninstallNotes:
- macOS only
- Requires
Remote Loginto be Off - Uses
sudoonly when needed
README.md- this overviewtailscale-ssh.md- full guidetailscale-ssh.sh- installer script