Docs

Devices

DigitalOcean

Add Droplets over SSH, or have new Droplets join on first boot with user data.

Droplets join like any Linux server. You don't need to open ports in a Cloud Firewall: Underpass connects outward.

Get a key

In the dashboard, open Machines → Add device → DigitalOcean and generate a key. Droplets are tagged tag:digitalocean and never expire. Make the key reusable to use it for several Droplets.

A new Droplet

When you create the Droplet, open Advanced options → Add initialization scripts and paste:

bash
#!/bin/sh
curl -fsSL https://coord.getunderpass.com/download/install.sh | UNDERPASS_AUTH_KEY=tskey-auth-xxxxxxxxxxxx sh

It runs once, on first boot. A minute later the Droplet shows up under Machines.

With doctl:

bash
doctl compute droplet create my-droplet --image ubuntu-24-04-x64 --size s-1vcpu-1gb --region fra1 \
  --user-data-file join-underpass.sh

A Droplet that already runs

SSH in (or use the Console in the control panel) and paste the setup script from the dashboard.

Lock it down

Once the Droplet is on Underpass, you can close SSH to the internet and reach it only over Underpass: remove the Cloud Firewall rule that lets port 22 in from anywhere, and connect with ssh root@<name>. See Lockdown for keeping a way back in.

Next