Skip to content

Setup

Tailscale

Installing Tailscale on Ubuntu is straightforward, and the official method involves using a single, automatic installation script.
There are two primary ways to install: the automated script (easiest) or manual package repository setup (more precise).

Automated Installation (Recommended)

This single command handles adding the GPG key, setting up the repository, and installing the tailscale package.

The curl command downloads the official installation script.
The output is piped (|) directly to the sh (shell) command, which executes it.
The script automatically detects your Ubuntu version and configures the appropriate apt repository.
Start and Connect Tailscale
Once the package is installed, you need to start the service and connect it to your Tailscale network (your “tailnet”).
Start the Client
Run the following command to start the Tailscale daemon and initiate the login process:
sudo tailscale up
Authenticate
The sudo tailscale up command will output a URL in your terminal.
Copy that URL and paste it into a web browser on your local machine.
Log in with your chosen identity provider (Google, Microsoft, etc.) to authenticate the device.
Once authenticated, the Ubuntu machine will appear in your Tailscale administration panel and become an active node on your private network.

Alternative: Manual Installation (for specific Ubuntu versions)

If you prefer to manually configure the package repository without using the automated script, you need to execute three separate steps. The following commands are for Ubuntu 22.04 LTS (Jammy Jellyfish)—you may need to adjust the version name (like jammy to noble for 24.04) if you are on a different version.
Add Tailscale’s GPG Key
curl -fsSL | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
2. Add the Repository to APT
curl -fsSL | sudo tee /etc/apt/sources.list.d/tailscale.list
3. Update and Install
sudo apt update
sudo apt install tailscale -y
After installation, proceed to the “Start and Connect Tailscale” step above.
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.