Before you begin
The public LeapTerm apps connect through LeapTerm's managed relay. Registering your own relay server is not available in the public apps, so the Relays tab under Proxies & Tunnels shows the Managed Leap Server, which is managed automatically. Its Managed relay usage card shows your monthly relay allowance once you are signed in.
To reach a private server through the relay without opening firewall ports, enroll the Leap Agent on that server as described below.
Enroll an installed agent
To reach a Linux, macOS, or Windows server through a relay without opening inbound firewall ports, install and pair Leap Agent on that server. Your browser or desktop OS does not need to match the server OS—always pick the command for the server itself:
- Linux / macOS — run in a terminal on the server:
curl -fsSL https://download.leapterm.com/leap-agent/install.sh | sh
If Leap Agent is already installed on the server, the script checks for semantic-version upgrades first and prompts [Y/n] to pair right away on a new install, or [y/N] to re-pair an existing server while keeping its host identity. You can also run sudo leap-agent join --device --restart-service (or leap-agent join --device --user for user-scoped installs) at any time.
- Windows — run in PowerShell on the server:
winget install --id LeapTerm.LeapTermAgent -e
leap-agent join --device
Pair from LeapTerm or rotate keys
- Click Pair in LeapTerm: Clicking Pair in LeapTerm copies a ready-to-run command for the server you choose—
sudo leap-agent join --token ...for a Linux or macOS terminal, orleap-agent join --token ...for Windows PowerShell, with nosshwrapper—so you can paste it directly on the server. - Re-pair an existing server: Add
--overrideto rotate enrollment credentials and keys while keeping the same host identity, or--new-hostto register a separate host entry. Runleap-agent statuson the server to confirm enrollment and service health.
Enroll from an active SSH workspace
If you are already connected to a Linux or macOS server over direct SSH, you can also open the Leap Agent panel and choose Enroll Relay:
- Click Show manual relay parameters to reveal the enrollment fields.
- Keep the API origin that is filled in for you (the LeapTerm service address).
- Paste the one-time Pairing token generated from your signed-in account for this server.
- Paste the Client OpenSSH public key of the device that will connect (only the
.pubpublic key—keep your private key safe on your device), then click Enroll Relay. - Click Check Service to confirm the agent is running and enrolled, then test your connection!

Configure a device-owned route
In the native apps, a saved SSH host can use a dedicated route to its enrolled agent through a relay that your organization operates. On the Servers page, open the saved host's options menu and choose Enable Relay to open the Device-owned relay dialog:
- Enter the relay address, enrolled connector and target details from your relay operator.
- Enter the verified SSH fingerprints for both the agent and the server. LeapTerm fills in the server's fingerprint when it already knows it.
- Save your relay token and SSH private key in LeapTerm's secure credential store first, then enter their secure-store references in this dialog—never the secrets themselves.
- Choose your preferred Transport for new connections and click Apply to profile.
Any changes you save will apply the next time you connect. If you ever want to go back to a normal direct connection for that server, choose Disable Relay from the same menu. For browser workspaces, follow the protected browser connection steps instead.
See transport selection and troubleshooting if you need help testing your new route.