asia ssh between macs
SSH Between Asia’s Machines — Setup Guide
Section titled “SSH Between Asia’s Machines — Setup Guide”This lets you SSH from your Mac Mini into your MacBook Air and vice versa, over Tailscale — works from anywhere, not just home.
Both machines are already on Tailscale:
| Machine | Tailscale hostname | Tailscale IP |
|---|---|---|
| Mac Mini | asias-mac-mini | 100.119.127.26 |
| MacBook Air | asias-macbook-air | 100.113.132.50 |
Step 1 — Check for SSH keys on both machines
Section titled “Step 1 — Check for SSH keys on both machines”Run this on each machine:
ls ~/.ssh/id_ed25519If the file exists, skip to Step 2. If you get “No such file or directory”, generate a key:
# On Mac Mini:ssh-keygen -t ed25519 -C "asia-mac-mini"
# On MacBook Air:ssh-keygen -t ed25519 -C "asia-macbook-air"Press Enter through all prompts (no passphrase needed).
Step 2 — Enable Remote Login on both machines
Section titled “Step 2 — Enable Remote Login on both machines”On each machine:
System Settings → General → Sharing → Remote Login → On
Make sure “Allow access for: All users” is selected.
Step 3 — Exchange public keys
Section titled “Step 3 — Exchange public keys”You need each machine’s public key in the other machine’s authorized_keys.
On Mac Mini — get its public key:
cat ~/.ssh/id_ed25519.pubCopy that entire line. Then on MacBook Air, run:
mkdir -p ~/.ssh && echo "PASTE_MAC_MINI_KEY_HERE" >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.sshOn MacBook Air — get its public key:
cat ~/.ssh/id_ed25519.pubCopy that entire line. Then on Mac Mini, run:
mkdir -p ~/.ssh && echo "PASTE_MACBOOK_AIR_KEY_HERE" >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.sshStep 4 — Add SSH config on both machines
Section titled “Step 4 — Add SSH config on both machines”On Mac Mini, add to ~/.ssh/config:
cat >> ~/.ssh/config << 'EOF'
Host macbook-air HostName 100.113.132.50 User vboy IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes StrictHostKeyChecking noEOFOn MacBook Air, add to ~/.ssh/config:
cat >> ~/.ssh/config << 'EOF'
Host mac-mini HostName 100.119.127.26 User vboy IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes StrictHostKeyChecking noEOFIf your username is different from
vboy, replace it in both commands.
Step 5 — Add shell aliases
Section titled “Step 5 — Add shell aliases”On Mac Mini:
echo 'alias air="ssh macbook-air"' >> ~/.zprofileOn MacBook Air:
echo 'alias mini="ssh mac-mini"' >> ~/.zprofileOpen a new terminal window on each machine, then test:
- From Mac Mini:
air - From MacBook Air:
mini
You should land in the other machine’s shell. Type exit to return.
Requirements going forward
Section titled “Requirements going forward”- Tailscale must be running on both machines (menu bar icon)
- Remote Login must be on at the destination machine
- Works from anywhere — home, office, or travel