Learn / Tailscale · Tailscale on DGX Spark
Tailscale, part 1: set up and connect
Let's reach your DGX Spark from anywhere, privately, with Tailscale. Part one: set it up, and connect.
Chapters
- 0:00Introduction
- 0:08Where this fits: The AI stack
- 0:13What it is: A private tailnet
- 0:26Keep it private: No public door
- 0:36Before you start: What you need
- 0:47On the Spark: Check SSH first
- 0:57On the Spark: Install Tailscale
- 1:05On the Spark: Join your tailnet
- 1:17Your devices: Install on each one
- 1:37Find it: Use its name
- 1:49Sign in: SSH by name
- 1:58Web pages: Keep it in a tunnel
- 2:07NVIDIA Sync: Or let Sync do it
- 2:21Wrap up
Read the transcript
Introduction
Let's reach your DGX Spark from anywhere, privately, with Tailscale. Part one: set it up, and connect.
Where this fits: The AI stack
We're at the bottom of the stack: the machine, and how you reach it.
What it is: A private tailnet
Tailscale links your own devices over encrypted connections. That private network is called your tailnet. So you can reach your Spark from another network, without opening ports on your router.
Keep it private: No public door
Keep it private. Don't forward ports on your router to the Spark. And don't use Tailscale Funnel. That publishes a service to the whole internet.
Before you start: What you need
You need a Tailscale account. Create it, or sign in, yourself. Your Spark, already set up, with your username and password. And another device, like a computer or phone.
On the Spark: Check SSH first
Open a terminal on the Spark, and check that SSH is running. SSH is still what signs you in. Tailscale provides the network.
systemctl status ssh --no-pagerOn the Spark: Install Tailscale
Download Tailscale's install script, read through it, then press Q to leave the reader, and run it.
curl -fsSL https://tailscale.com/install.sh \
-o tailscale-install.sh
less tailscale-install.sh
sh tailscale-install.shOn the Spark: Join your tailnet
Now run tailscale up, with sudo. It prints a sign-in link. Open it, and sign in with your own account. Don't share that link. Then check that your Spark appears on the Machines page.
sudo tailscale upYour devices: Install on each one
On a Mac, Tailscale recommends the standalone download. It's also in the Mac App Store. On Windows, run the installer, then log in from the tray icon. On a phone, get the app from your app store, and allow the VPN setting. The key step: sign in to the same tailnet on every device.
Find it: Use its name
With MagicDNS, your devices find each other by name. Use the name on the Machines page. In our example, it's my spark. Check the two can see each other with tailscale ping.
Sign in: SSH by name
Now SSH to your Spark, using your username and its name. Try it from a different network, to prove it works away from home.
ssh USER@my-sparkWeb pages: Keep it in a tunnel
To open a web page on the Spark, tunnel it through SSH. It opens on your computer as localhost, and stays private.
NVIDIA Sync: Or let Sync do it
NVIDIA Sync also has Tailscale built in. Add your Spark while you can still reach it directly. In Settings, enable Tailscale, then add your Spark to your tailnet. After that, Sync picks the right route for you.
Wrap up
You're connected. Part two is looking after it.
Sources
- tailscale.com/docs/how-to/quickstart
- tailscale.com/docs/install/linux
- tailscale.com/docs/features/magicdns
- tailscale.com/docs/features/access-control/key-expiry
- tailscale.com/docs/features/access-control/device-management/how-to/remove
- build.nvidia.com/spark/connect-to-your-spark/tailscale
- docs.nvidia.com/sync/latest/tailscale.html