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
- Install Tailscale (opens in a new tab) on your computer and sign in.
- Open the Tailscale invitation from your dashboard and accept it with the same Tailscale account. Your Mac then appears in your Tailscale machine list.
- Copy your username and the private hostname from the dashboard.
First connection
$ ssh <username>@<your-mac>.<tailnet>.ts.netOn 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:
$ tailscale statusAdd an SSH config entry
A host entry in ~/.ssh/config saves typing and is picked up by VS Code and Cursor:
Host my-mac HostName <your-mac>.<tailnet>.ts.net User <username> IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes ServerAliveInterval 60$ ssh my-macCopy files
# 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:
$ ssh -L 3000:localhost:3000 my-macKeep long jobs running
Commands stop when your SSH session disconnects. Use tmux (install it with Homebrew) to keep a session alive and reattach later:
$ brew install tmux$ tmux new -s build # start a named session$ tmux attach -t build # reattach after reconnectingNext steps
- OS-specific setup: Windows, macOS, Linux.
- Use key-based sign-in: Managing SSH keys.
Need a hand? Check the status page or contact support.