Skip to content
Vaulthalla LogoVaulthalla

Pair with a node

Pair Vaulthalla Desktop with the server on this Mac without a code, or with a remote node by matching a six-digit code, from the web console, the CLI or a pairing link.

Pairing is how this Mac signs in to a Vaulthalla server. It gives the Mac its own key on that node, kept in the Secure Enclave. No password is stored and no browser cookie is involved. A paired Mac acts as the Vaulthalla account that approved it, with that account's permissions.

You pair once per node. Desktop then stays signed in across quits, restarts and reboots.

This Mac's own server

When Vaulthalla Server is installed on the same Mac, Desktop sets it up by itself: at launch, or as soon as the server appears while Desktop runs. There is no code to compare and nothing to click. Your macOS account is the proof: Desktop runs the server's vh as you, and the node acts as the Vaulthalla user your macOS account is bound to (admin for the person who installed the server).

This doesn't happen when:

  • your macOS account isn't enrolled for vh on that server;
  • you removed this Mac's server from Desktop before (Desktop leaves it removed);
  • Keep me signed in on this Mac is off.

If you add the node by hand at a local address, the pairing sheet offers Pair Using Vaulthalla on This Mac…, which does the same approval through vh after you agree.

Pair with a remote node

A remote node has to accept devices from other machines first. Its device listener (port 36972) listens on loopback only until a super admin turns on remote connections:

1vh device remote enable

In the web console that switch is Allow remote connections under Devices → All devices → Remote connections. Desktop has the same switch on a node's Devices page, for super admins. See the server's Paired Devices for firewall and listener details.

  1. Open a pairing window on the node

    Any signed-in user can pair a Mac to their own account. Either:

    • in the web console, open Devices and click Pair a device; or

    • on the server, run:

      1vh device pair

    The window stays open for 10 minutes.

  2. Add the node in Desktop

    Choose Add Node… (⌘N). The Add a Node sheet lists Vaulthalla servers it finds On This Network. Pick one, or enter its host name or IP address under Or Enter an Address, for example vh-storage.local:36972. Without a port Desktop uses 36972. A name is optional. Choose Continue.

  3. Pair and compare the code

    Choose Pair. The Mac shows a six-digit code, for example 482 913. The web console's dialog, or vh device pair, lists this Mac's request with three codes. Click the one the Mac shows. A wrong pick declines the request; start again on the Mac for a new code.

  4. Done

    Desktop says Paired with the server's name and connects with its own key, pinned to the server's key. The node appears in the sidebar.

Compare the codes, every time

The code is what proves this Mac is talking to the node and not to something in between. Never approve a request you didn't start, and never pick a code the Mac isn't showing.

A request lasts five minutes, and closing the pairing window ends it. If the sheet says Open a pairing window on the node, open one first and try again.

On servers that advertise their addresses, the web console's Pair a device dialog offers Open in Vaulthalla Desktop, a vaulthalla://pair?… link. Opening it fills in Add Node From the Pairing Link with addresses that answer with the server's key, and the sheet says The server's key checks out. Pairing then refuses any other server. The link only saves typing: you still compare the six-digit code.

Pair another Mac from this one

A node's Devices page has Pair a Device. It opens a pairing window and lists requests from other Macs, so you can approve one by clicking the code it shows, as in the web console. The new Mac pairs with the account this Mac acts for on that node.

How Desktop reaches a node

Each node advertises its addresses. Desktop uses the best one that proves the node's pinned key, in this order:

  1. this Mac;
  2. the local network;
  3. a VPN;
  4. the internet.

Bonjour (_vaulthalla._tcp) is the last resort. When a route drops, Desktop picks again and carries transfers over to the new one. A node's Overview has a Connection panel with the route in use, its round trip, live throughput and, when a better route wasn't used, why. Test Connection checks every address again.

Staying signed in

Keep me signed in on this Mac (in the pairing sheet and in Settings › General) is on by default. Turn it off on a Mac that isn't yours: quitting Vaulthalla or logging out of macOS then signs this Mac out of every node. See Signing out.