Skip to content

Connecting Through SSH

Join the private network, open your first SSH session, set up an SSH config entry, copy files and forward ports.

On this page

Before you start

  1. Install Tailscale (opens in a new tab) on your computer and sign in.
  2. Open the Tailscale invitation from your dashboard and accept it with the same Tailscale account. Your Mac then appears in your Tailscale machine list.
  3. Copy your username and the private hostname from the dashboard.

First connection

Terminal
$ ssh <username>@<your-mac>.<tailnet>.ts.net

On the first connection SSH asks you to confirm the host key — type yes. SSH accepts key-based sign-in only, so add your public key in the dashboard first. Your temporary macOS password is used for Screen Sharing; macOS asks you to choose a new one the first time you sign in — use a strong, unique password.

If the name does not resolve, check that MagicDNS is enabled in your Tailscale admin console (DNS settings), or use the Mac's Tailscale IP address (100.x.y.z) instead. You can list it with:

Terminal
$ tailscale status

Add an SSH config entry

A host entry in ~/.ssh/config saves typing and is picked up by VS Code and Cursor:

~/.ssh/config
Host my-mac  HostName <your-mac>.<tailnet>.ts.net  User <username>  IdentityFile ~/.ssh/id_ed25519  IdentitiesOnly yes  ServerAliveInterval 60
Terminal
$ ssh my-mac

Copy files

Terminal
# Upload a file$ scp ./build.zip my-mac:~/Downloads/# Sync a project folder (only changed files are sent)$ rsync -avz --progress ./my-project/ my-mac:~/my-project/# Download a folder from the Mac$ rsync -avz my-mac:~/my-project/build/ ./build/

Forward a port

To open a dev server running on the Mac in your local browser, forward the port through SSH and visit http://localhost:3000:

Terminal
$ ssh -L 3000:localhost:3000 my-mac

Keep long jobs running

Commands stop when your SSH session disconnects. Use tmux (install it with Homebrew) to keep a session alive and reattach later:

Terminal
$ brew install tmux$ tmux new -s build      # start a named session$ tmux attach -t build   # reattach after reconnecting

Next steps

Need a hand? Check the status page or contact support.