> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/gateway/guides/devolutions-cloud/register-and-configure.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Register and configure the gateway in Devolutions Cloud

Register Devolutions Gateway in Devolutions Cloud: download the public key and installer, add the gateway, set its security, check its health and update it.

Devolutions Cloud uses a Devolutions Gateway once the gateway holds the Devolutions Cloud public key and is registered on the ***Devolutions Gateway*** page of the Devolutions Cloud web interface: ***Administration*** – ***Devolutions Gateway***. The page requires the ***Manage gateways*** system permission; without it, the actions on the page are unavailable.

## Download the public key and the installer

On the ***Devolutions Gateway*** page, the ***More*** menu has:

<table><thead><tr><th width="250">COMMAND</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><strong>Download public key</strong></td><td>Saves <code>provisioner.pem</code>, the public key every gateway of your Devolutions Cloud must hold to accept its sessions. The first time, Devolutions Cloud creates the key pair of your Devolutions Cloud; later downloads give the same public key.</td></tr><tr><td><strong>Download MSI</strong></td><td>Downloads the latest Devolutions Gateway installer for Windows. For Linux or Docker, see <a href="https://docs.devolutions.net/gateway/for-administrators/install/linux.md">Install on Linux</a> and <a href="https://docs.devolutions.net/gateway/for-administrators/install/docker.md">Run in Docker</a>.</td></tr></tbody></table>

Install the gateway with `provisioner.pem` as its public key:

* **Windows installer**: leave ***Enable the Gateway web interface*** cleared on the ***Configuration*** page, choose ***Manual configuration*** on the ***Companion Server*** page, then select `provisioner.pem` as ***Public Key File*** on the ***Encryption Keys*** page. See [Install on Windows](https://docs.devolutions.net/gateway/for-administrators/install/windows.md).
* **Linux**: copy the file to `/etc/devolutions-gateway/provisioner.pem`. See [Install on Linux](https://docs.devolutions.net/gateway/for-administrators/install/linux.md).
* **Docker**: pass its content in Base64 in `PROVISIONER_PUBLIC_KEY_B64`. See [Run in Docker](https://docs.devolutions.net/gateway/for-administrators/install/docker.md).

## Add a gateway

1. On the ***Devolutions Gateway*** page, click ***Add*** – ***Gateway***. On an empty page, click ***Add a gateway***.
2. In ***General***, enter a ***Name*** and the ***Devolutions Gateway URL***, for example `https://gateway.example.com:7171`.
3. Click ***Auto-Detect*** to fill ***TCP Hostname*** and ***TCP Listening Port*** from the gateway: "Gateway TCP information was successfully loaded from configuration."
4. Click ***Test connection***.
5. Set ***Vaults***, ***Groups*** and ***Users***: where and by whom the gateway can be used.
6. Click ***Add***.
7. If the gateway shows "Configuration is not in sync", click ***More*** – ***Publish Gateway configuration*** on its row. Devolutions Cloud writes its gateway ID, its public key for the gateway and the address where the gateway sends its session notifications into the gateway configuration. The gateway must reach Devolutions Cloud over HTTPS (TCP 443) to send those notifications.

***Test connection*** tests the gateway twice:

* from your browser: "Connection successful from browser" or "Connection failed from browser";
* from the PAM Service, when one is installed: "Connection successful from PAM service" or "Connection failed from PAM service".

"Invalid configuration" means a field is not valid. Your browser must reach the gateway URL to show its health, logs and sessions on this page.

### General

<table><thead><tr><th width="250">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Name shown in gateway lists. Required.</td></tr><tr><td><strong>Description</strong></td><td>Optional.</td></tr><tr><td><strong>Set as default</strong></td><td>Entries set to the default gateway use this one. Only one gateway, farm or ruleset is the default.</td></tr><tr><td><strong>Force Gateway rulesets</strong></td><td>The gateway can only be used through Gateway rulesets. See <a href="https://docs.devolutions.net/gateway/guides/devolutions-cloud/rulesets.md">Gateway rulesets in Devolutions Cloud</a>.</td></tr><tr><td><strong>Devolutions Gateway URL</strong></td><td>The HTTP(S) address of the gateway, with its port. Required. Use HTTPS with a certificate trusted by the users' computers.</td></tr><tr><td><strong>TCP Hostname</strong></td><td>Host name clients use for native sessions. It must resolve from the computers running Remote Desktop Manager.</td></tr><tr><td><strong>TCP Listening Port</strong></td><td>Port of the gateway TCP listener, 0 to 65535 (default on the gateway: 8181). <em><strong>Auto-Detect</strong></em> reads it from the gateway.</td></tr><tr><td><strong>Gateway farm</strong></td><td>The farm the gateway belongs to, if any. See <a href="https://docs.devolutions.net/gateway/guides/devolutions-cloud/farms.md">Gateway farms in Devolutions Cloud</a>.</td></tr></tbody></table>

### Advanced

<table><thead><tr><th width="250">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Force using IP address for RDP connections</strong></td><td>Sends RDP sessions to the target's IP address instead of its host name. Leave it cleared for Kerberos authentication through the KDC proxy.</td></tr><tr><td><strong>Certificate thumbprint</strong></td><td>Thumbprint of the gateway TLS certificate recorded for this gateway. <em><strong>Clear certificate thumbprint</strong></em> removes it. Use a gateway certificate trusted by the client computers.</td></tr><tr><td><strong>Allow user vaults</strong></td><td>Entries in users' own vaults can use the gateway.</td></tr><tr><td><strong>Allow dynamic connections</strong></td><td>Quick connect and other dynamic connections can use the gateway. When cleared: "Dynamic connections are not allowed on this gateway."</td></tr></tbody></table>

### KDC proxy, security and information

* ***KDC proxy***: ***KDC server URL*** and ***Kerberos realm*** of the Kerberos KDC the gateway proxies. See [Use the KDC proxy](https://docs.devolutions.net/gateway/guides/connect/kdc-proxy.md).
* ***Vaults***, ***Groups***, ***Users***: the vaults whose entries can use the gateway, and the user groups and users allowed to open sessions through it. For a farm member, these tabs are replaced by "This Gateway is currently in a farm. Its security can be defined in the farm."
* ***Gateway information***: the ***ID*** of the gateway in Devolutions Cloud.

Devolutions Cloud has no token duration, health check interval or RDP reconnection settings for gateways.

## The gateway list

The toolbar has ***Add*** (***Gateway***, ***Gateway farm***, ***Gateway Ruleset***), ***Refresh*** and ***More***. The list shows ***Name***, ***Storage capacity*** ("{0} of {1} used", "No storage data available."), ***Description***, ***Devolutions Gateway URL***, ***TCP Listening Port*** and ***Default***, with ***Edit***, ***Delete*** and ***More*** on each row.

<table><thead><tr><th width="270">ROW MENU (MORE)</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><strong>Logs</strong></td><td>Shows the gateway log, with <em><strong>Download</strong></em> (<code>gateway-&#x3C;name>.log</code>) and <em><strong>Expand window</strong></em>.</td></tr><tr><td><strong>Sessions</strong></td><td>Lists sessions with <em><strong>Status</strong></em>, <em><strong>Gateway</strong></em>, <em><strong>Session Details</strong></em>, <em><strong>Type</strong></em>, <em><strong>Created on</strong></em>, <em><strong>Duration</strong></em>, <em><strong>Recorded</strong></em> and <em><strong>Created by</strong></em>, with <em><strong>Go to</strong></em> and <em><strong>Terminate session</strong></em>. <em><strong>Delete all connecting sessions</strong></em> marks sessions stuck at Connecting as terminated. For a farm, the menu has <em><strong>Sessions</strong></em> only.</td></tr><tr><td><strong>Agent tunnel</strong></td><td>Lists the Devolutions Agents connected to the gateway and generates enrollment strings. Requires Devolutions Gateway 2026.3.0 or later with agent tunnel enabled. See <a href="https://docs.devolutions.net/gateway/guides/connect/agent-tunnel.md">Agent tunnel</a>.</td></tr><tr><td><strong>Publish Gateway configuration</strong></td><td>Writes the Devolutions Cloud gateway ID, the Devolutions Cloud public key for the gateway and the address where the gateway sends its session notifications into the gateway configuration. Fails with "Could not publish Gateway configuration because "Force token generation to be on the PAM Service" is enabled" when that PAM Service option is on.</td></tr><tr><td><strong>Update version</strong>, <strong>Cancel update</strong></td><td>Updates the gateway through Devolutions Agent, described below.</td></tr></tbody></table>

Gateway Rulesets have no ***More*** menu. Deleting asks "Delete '{0}'?"; deleting a farm asks "Do you want to delete the Devolutions Gateway farm '{0}'?" with ***Also, delete all Devolutions Gateways in the farm.***

## Health

Your browser checks each gateway when the page opens:

<table><thead><tr><th width="330">INDICATOR</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td>"Is online"</td><td>Nothing: the gateway answers.</td></tr><tr><td>"Unreachable Devolutions Gateway"</td><td>Your browser cannot reach the gateway URL: check the service, the URL, the firewall and that the certificate is trusted by your computer. See <a href="https://docs.devolutions.net/gateway/help/troubleshooting/general.md">Devolutions Gateway troubleshooting</a>.</td></tr><tr><td>"Configuration is not in sync"</td><td>The gateway reports another ID than Devolutions Cloud. Use <em><strong>More</strong></em> – <em><strong>Publish Gateway configuration</strong></em>.</td></tr></tbody></table>

Farms show "All Devolutions Gateways in the farm are up.", "Some Devolutions Gateway in the farm is down.", "All Devolutions Gateways in the farm are down." or "There is no Devolutions Gateway in the farm."

## Update gateways through Devolutions Agent

Devolutions Cloud sends the update request to the PAM Service, which asks the gateway to update; Devolutions Agent, installed on the gateway machine, installs the new version.

Requirements:

* The PAM Service is installed and running: otherwise "Could not reach the PAM Service. Try restarting the service."
* Devolutions Agent 2025.1.0 or later is installed on the gateway machine, with its Devolutions Gateway updater. Rows without it show "Devolutions Agent is not installed". See [Keep Devolutions Gateway up to date](https://docs.devolutions.net/agent/guides/gateway-updates).
* The gateway runs Devolutions Gateway 2025.1.10 or later.

Devolutions Agent 2026.3.1 or later updates Devolutions Gateway only when the gateway service runs under Network Service, the gateway's virtual account or a verified managed service account: it does not update a gateway whose service account signs in with a password.

To update:

1. Click ***More*** – ***Update version*** on a gateway row, or select several gateways for a ***Bulk update*** ("{0} Gateways selected").
2. Choose the ***Version to install***.
3. Click ***Update now***, or choose ***Update options*** – ***Defer until no active sessions*** or ***Defer based on time*** and click ***Defer update***.

The row then shows "Pending update to version {0}", "Deferred until no session active", "Update will start after {0}" or "Gateway update to version {0} in progress". The PAM Service waits up to 8 minutes for the gateway to report the new version. After a failure, the row shows "Previous Gateway update failed, view Devolutions Cloud service logs for more information"; the PAM Service log gives the reason, such as "Gateway is not running", "Requested version is not valid", "Gateway is already in the requested version or newer" or "Devolutions Agent is not installed or version installed is less than 2025.1.0". To stop a pending update, click ***Cancel update***.

Devolutions Agent on the PAM Service machine can also update the PAM Service itself. Other ways to update a gateway: [Update Devolutions Gateway](https://docs.devolutions.net/gateway/for-administrators/install/update.md).

## Use the gateway in entries

In the Devolutions Cloud web interface, an entry's VPN/tunnel/gateway settings have a ***Devolutions Gateway*** field with ***Check health*** ("Connection successful", "Configuration is not in sync", "Unreachable gateway"). If the gateway is not allowed in the entry's vault: "The selected Gateway isn't assigned to the vault. Some users might not have access to it." The other gateway options of the entry are edited in Remote Desktop Manager: "Advanced settings are not editable; use RDM instead."

An entry can also choose the Devolutions Agent that carries its sessions (field ***Agent***), when the gateway uses agent tunnel and the PAM Service is installed. See [Agent tunnel](https://docs.devolutions.net/gateway/guides/connect/agent-tunnel.md) and [Use a gateway in Remote Desktop Manager](https://docs.devolutions.net/gateway/guides/connect/remote-desktop-manager.md).

## Reports and logs

* ***Devolutions Gateway permissions***: which users, groups and vaults can use each gateway, with the filters ***All***, ***Is online*** and ***Is offline***.
* ***Devolutions Gateway sessions***: the sessions opened through gateways, for all users, with ***Session Details***.
* The activity logs record gateways added, edited and deleted, and sessions opened, closed, failed or terminated.

## Manage gateways in Remote Desktop Manager

In Remote Desktop Manager connected to Devolutions Cloud, ***Administration*** – ***Privileged access*** – ***Devolutions Gateway*** opens the ***Gateways*** view: ***Add***, ***Edit***, ***Delete***, ***Ping***, ***Publish Gateway configuration***, ***Details*** (***Logs***, ***Sessions***, ***Diagnostics***), ***Download public key*** and ***Refresh***. ***Ping*** checks the gateway from the computer running Remote Desktop Manager ("Connection successful from RDM" or "Connection failed from RDM") and from the PAM Service. Updates and agent tunnel enrollment are managed in the Devolutions Cloud web interface. On Linux, Remote Desktop Manager edits Gateway rulesets only.

With PowerShell, the Devolutions.PowerShell module manages Devolutions Cloud gateways with `New-DCDevoGateway`, `Get-DCDevoGateway`, `Set-DCDevoGateway`, `Remove-DCDevoGateway` and the `*-DCDevoGatewaySettings` cmdlets. See the [Devolutions PowerShell documentation](https://docs.devolutions.net/powershell).

## Messages

<table><thead><tr><th width="420">MESSAGE</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td>"Devolutions Cloud could not authenticate against the Gateway. Verify that the provisioner.pem on the Gateway is the public key downloaded from Devolutions Cloud, then publish the Gateway configuration."</td><td>Download the public key again, install it on the gateway as <code>provisioner.pem</code>, restart the gateway service and use <em><strong>Publish Gateway configuration</strong></em>.</td></tr><tr><td>"Devolutions Gateway is unreachable. Please make sure it is up and running."</td><td>Start the gateway service; check the URL, firewall and certificate.</td></tr><tr><td>"Gateway's private key is missing."</td><td>The gateway key pair of your Devolutions Cloud is missing. Use <em><strong>More</strong></em> – <em><strong>Download public key</strong></em>, which creates it the first time, then install the public key on every gateway.</td></tr><tr><td>"You can only run up to 5 concurrent sessions with an unlicensed Devolutions Gateway."</td><td>Assign a Devolutions Gateway license. See <a href="https://docs.devolutions.net/gateway/guides/understand/licensing.md">Licensing</a>.</td></tr></tbody></table>

More messages and their fixes: [Error messages](https://docs.devolutions.net/gateway/help/troubleshooting/error-messages.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/gateway/guides/devolutions-cloud/register-and-configure.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
