# Linux and Ubuntu servers

> Add a Linux desktop or server, such as Ubuntu or Debian, with one command.

Underpass runs on Linux on x86-64 and ARM64. One command installs the `underpass` command and a systemd service that keeps the machine connected through reboots.

## A server

1. In the dashboard, open **Machines → Add device → Ubuntu server** (or **Linux**) and generate the key and setup script. Servers are tagged by default, so they never expire.
2. SSH into the server and paste the script. It looks like:

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

3. It prints `Connected as <name> (100.64.x.x).`

From your other devices, reach it by its name: `ssh ubuntu@<name>`. Nothing needs to be opened in the server's firewall: Underpass connects outward.

Add `UNDERPASS_HOSTNAME=db-prod` before `sh` to choose the name it joins with.

## A desktop

Run the install command without a key, and open the link it prints to sign in:

```bash
curl -fsSL https://coord.getunderpass.com/download/install.sh | sh
```

## Requirements

- x86-64 or ARM64. 32-bit systems aren't supported yet.
- systemd for the background service. Without it (most containers), see [Without the background service](/getting-started/add-a-server#without-the-background-service).
- `sudo`, or run as root.

## Check it worked

```bash
underpass status
```

## Many servers

Make the key **reusable** and put the command in your provisioning: a cloud-init file, an Ansible task or an image build. See [Add a server](/getting-started/add-a-server) and [Auth keys](/manage/auth-keys).

## Next

- [Share a service](/features/services) running on it
- [Route a whole subnet](/features/subnet-routes) through it
- [Lock it down](/features/lockdown)
