> 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/rdm/knowledge-base/knowledge-base-articles/entry-settings/ssh-gateway.md).

# SSH gateway

Configure the SSH gateway VPN entry in Remote Desktop Manager, including the list of gateway hosts and ports, reconnect mode, wait options, and VPN commands.

This article details the many settings and options available for SSH gateway VPN entries in Remote Desktop Manager.

<table data-header-hidden><thead><tr><th width="200"></th><th></th></tr></thead><tbody><tr><td><strong>SETTINGS</strong></td><td><strong>DESCRIPTION</strong></td></tr><tr><td><strong>Name</strong></td><td>The name of the entry.</td></tr><tr><td><strong>Folder</strong></td><td>The folder where the entry is located.</td></tr><tr><td><strong>Display</strong></td><td>How the entry opens. This entry type only supports <em><strong>External</strong></em>, so the display mode cannot be changed.</td></tr><tr><td><strong>VPN type</strong></td><td>The type of VPN the entry configures. Selecting another type replaces the content of the <em><strong>Connection</strong></em> tab.</td></tr></tbody></table>

### Connection

<table><thead><tr><th width="220">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Gateways</strong></td><td>The list of SSH gateways stored in the entry, showing the <em><strong>Host</strong></em> and <em><strong>Port</strong></em> of each gateway.</td></tr><tr><td><strong>Add</strong></td><td>Open a dialog to define a new SSH gateway and add it to the list.</td></tr><tr><td><strong>Edit</strong></td><td>Open the selected SSH gateway in a dialog to modify it.</td></tr><tr><td><strong>Delete</strong></td><td>Remove the selected SSH gateway from the list after confirmation.</td></tr><tr><td><strong>Up arrow</strong> / <strong>Down arrow</strong></td><td>Change the position of the selected SSH gateway in the list.</td></tr></tbody></table>

### Advanced

<table><thead><tr><th width="220">SETTINGS</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><strong>Go offline on connection</strong></td><td>Switch Remote Desktop Manager to offline mode when the VPN connects.</td></tr><tr><td><strong>Close connection after (min)</strong></td><td>Automatically close the VPN after the set number of minutes (0 to 4320). The value is available when the checkbox is selected.</td></tr><tr><td><strong>Detect reachable host in wait</strong></td><td>Check whether the host is reachable while waiting for the VPN to connect.</td></tr><tr><td><strong>VPN reconnect mode</strong></td><td><p>Choose how the VPN behaves when the connection needs to be reopened:</p><ul><li><strong>Default</strong> — use the VPN reconnect mode defined in the application options.</li><li><strong>Reconnect VPN</strong></li><li><strong>Leave VPN open</strong></li></ul></td></tr><tr><td><strong>Go online on disconnect after (sec)</strong></td><td>Switch Remote Desktop Manager back to online mode after the VPN disconnects, once the set number of seconds (0 to 180) has passed.</td></tr><tr><td><strong>Use adapter to detect connection</strong></td><td>Use a network adapter to detect whether the VPN connection is open.</td></tr><tr><td><strong>After execution, wait</strong></td><td><p>Choose what Remote Desktop Manager waits for after starting the VPN:</p><ul><li><strong>Delay</strong> — wait for the set number of seconds (-1 to 180). A value of -1 uses the default wait time from the application options.</li><li><strong>For IP on adapter</strong> — wait for the network adapter to get an IP address. Enter an adapter name or a device name in the field, or click the browse button to select an adapter.</li></ul></td></tr><tr><td><strong>Wait a maximum of (sec)</strong></td><td>The maximum time to wait for the adapter to get an IP address (-1 to 180). Available when <em><strong>After execution, wait</strong></em> is set to <em><strong>For IP on adapter</strong></em>.</td></tr><tr><td><strong>Then delay (ms)</strong></td><td>An additional delay, in milliseconds, applied once the adapter has an IP address (-1 to 180000). Available when <em><strong>After execution, wait</strong></em> is set to <em><strong>For IP on adapter</strong></em>.</td></tr><tr><td><strong>Commands</strong></td><td>A list of VPN commands, each with a name, an <em><strong>After connection command</strong></em> and a <em><strong>Before disconnecting command</strong></em>. Use <em><strong>Add</strong></em>, <em><strong>Edit</strong></em>, <em><strong>Delete</strong></em>, <em><strong>Move up</strong></em> and <em><strong>Move down</strong></em> to manage the list. The commands section is available when <em><strong>After execution, wait</strong></em> is set to <em><strong>For IP on adapter</strong></em>, and is not supported on macOS.</td></tr><tr><td><strong>After connecting, VPN command enabled</strong></td><td>Run the after connection commands once the VPN connects.</td></tr><tr><td><strong>Before disconnecting, VPN command enabled</strong></td><td>Run the before disconnecting commands before the VPN disconnects.</td></tr><tr><td><strong>Run routes in batch (forces elevated privileges)</strong></td><td>Run the route commands in a single batch. This option requires elevated privileges.</td></tr></tbody></table>


---

# 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/rdm/knowledge-base/knowledge-base-articles/entry-settings/ssh-gateway.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.
