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:
#!/bin/sh
curl -fsSL https://coord.getunderpass.com/download/install.sh | UNDERPASS_AUTH_KEY=tskey-auth-xxxxxxxxxxxx shIt runs once, on first boot. A minute later the Droplet shows up under Machines.
With doctl:
doctl compute droplet create my-droplet --image ubuntu-24-04-x64 --size s-1vcpu-1gb --region fra1 \
--user-data-file join-underpass.shA 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
- Access controls for
tag:digitalocean - Share a service running on it