Skip to content

Pair a host

First install and configure the Linux host, then run pairing as the darpan-connect service account, not root:

Terminal window
sudo -u darpan-connect darpan-connect pair --cloud https://app.darpan.space

The command prints a short code and an approval link. Use your own verified Darpan account and complete any access verification requested by the app.

  1. Open the link and sign in.
  2. Check that the code matches the one printed on your own machine.
  3. Review the read-only random address and enter your existing Linux username. Your machine’s display name is not used in its URL.
  4. Approve and wait for the command to finish.

Do not approve a code someone else sends you. Pairing grants access to a machine through your account. Copy the generated address from your pairing receipt. New addresses use a generated h-… name, not a name you choose. The completed connector receipt contains the final assigned address; a rare collision can change the preview. Custom addresses are not supported, and existing hosts keep their current addresses.

The connector stores its pairing under /var/lib/darpan-connect. Only the connector and gateway can read it. Configure the gateway’s public origin to match the paired URL, then start darpan and darpan-connect.

Terminal window
sudo -u darpan-connect darpan-connect status
sudo systemctl start darpan darpan-connect

On a custom gateway port, add --gateway-port <port> when pairing.

Remove it from the host dashboard, or run sudo -u darpan-connect darpan-connect unpair. This withdraws its cloud access. It does not erase the Linux accounts or their files.