⭐ Core project · #1

🏠 Reach your home machine from anywhere

SSH into your home server from a coffee shop. Copy files between your laptop and home. The "aha" project — proves the network you just built actually works the way M1 promised.

⭐ Core Networking Beginner ~30 min Prereqs: M3 (onboarding)

Why this project

Two devices on a tailnet should feel like they're plugged into the same router — even if one's at home and the other's a thousand miles away. This is the simplest possible demonstration of that promise: SSH from somewhere remote into something at home.

Once this works, you have everything you need to host services and reach them from anywhere — Jellyfin, Home Assistant, a private website, whatever. This is the wedge.

Who this helps

What you get

WITHOUT TAILSCALE 💻 laptop (away) 📡 router port forward 22 🖥️ home-server ⚠ public IP changes ⚠ port forwarding rule ⚠ dyndns config ⚠ exposed to scanners "is the rule still active? what's my IP today?" WITH TAILSCALE 💻 laptop (away) 🔒 tailnet peer-to-peer, encrypted 🖥️ home-server ssh you@home-server "it just works"

Same two devices either way. The router is the same too. What changes is whether you're trying to punch through the router (left) or quietly tunnel around it (right).

Prerequisites

Steps

Verify both devices are on the tailnet ~2 min

From your client device (laptop, phone), check that you can see the home device:

tailscale status

You should see the home device listed with its tailnet IP. If not, revisit M3L7.

Make sure SSH is running on the home machine ~5 min

sudo apt install openssh-server  # Ubuntu/Debian
sudo systemctl enable --now ssh

# Verify it's listening:
sudo ss -tlnp | grep :22

macOS includes SSH but it's off by default. Enable in System Settings → General → Sharing → Remote Login. Or via CLI:

sudo systemsetup -setremotelogin on

Add the OpenSSH Server feature: Settings → System → Optional features → Add → OpenSSH Server. Then start it:

Start-Service sshd
Set-Service -Name sshd -StartupType Automatic

Connect by name ~1 min

From your client device:

ssh you@home-server

Replace you with your username on the home machine and home-server with whatever you named that device in the admin console.

Authenticate (password or SSH key), and you're now in a shell on your home machine.

Test it from somewhere else. Disconnect from your home wifi, tether to your phone instead, run the same command. It still works. That's the whole point of this course.

Copy files with scp ~2 min

Send a file:

scp ./report.pdf you@home-server:~/Documents/

Pull a file:

scp you@home-server:~/Pictures/photo.jpg ./

For folders, add -r: scp -r ./project you@home-server:~/.

Optional: skip password entry with SSH keys ~5 min

# On your client, generate a key if you don't have one:
ssh-keygen -t ed25519

# Copy your public key to the home machine:
ssh-copy-id you@home-server

# Now SSH in — no password prompt.
ssh you@home-server

Optional: use Tailscale SSH instead ~5 min

Tailscale offers its own SSH-handling that skips key management entirely. Tailscale authenticates you based on your tailnet identity; ACLs decide who can SSH in.

On the home machine:

sudo tailscale up --ssh

Now ssh you@home-server works without you ever having set up SSH keys. Add an ACL rule to restrict who can connect:

"ssh": [
  { "action": "accept", "src": ["you@example.com"], "dst": ["you@example.com"], "users": ["you", "root"] }
]

Verify

Common issues

Where this leads