> 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/powershell/remote-desktop-manager-powershell/ssh-algorithm-support.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# SSH algorithm support

Fix SSH\_FAIL\_NO\_MATCH connection errors in Remote Desktop Manager by enabling additional SSH algorithm support for a single entry or globally.

The following error message can appear when opening a Secure Shell (SSH) connection in Remote Desktop Manager: "An unexpected error has occurred: Error code SSH\_FAIL\_NO\_MATCH (-3006) Unable to find a matching algorithm with the SSH server".

### Local solution for one entry

{% hint style="warning" %}
Remote Desktop Manager now has a selection of algorithms for the SSH session type. Please note that the **unsecured** ones are not enabled by default. We therefore recommend to check the algorithms directly on the server for security purposes. Otherwise, follow the steps below to resolve this issue.
{% endhint %}

1. Right-click on the problematic entry and select ***Properties***, then go to ***Common*** – ***General.***
2. In the ***Advanced*** tab, set the ***Algorithm support*** option to ***Custom***. The two values of ***Algorithm support*** are ***Default*** (the entry uses the global algorithm settings) and ***Custom*** (the entry uses its own list of algorithms).
3. Click on the ellipsis button (***...***) that appeared to the right of the ***Algorithm support*** setting.
4. In the new ***SSH*** window, select the missing algorithms from the list.

   <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>Make sure to go through the algorithms in all tabs before proceeding.</p></div>
5. Click ***OK*** in the ***SSH*** window, then ***OK*** again in the window of the entry properties.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>It may be necessary to restart Remote Desktop Manager for the solution to take effect.</p></div>
6. Test the connection. If the connection still does not work after enabling the algorithms, return to the ***Advanced*** tab in the entry properties, and check the ***Skip environment variable setup*** box. Click ***OK*** to effectuate the change.

### Global solution for all entries

It is also possible to globally reactivate all the algorithms in Remote Desktop Manager via the ***File*** – ***Settings*** – ***Entry types*** – ***Sessions*** – ***Terminal*** – ***Algorithm support*** menu. Select the missing algorithms, then click ***OK***.

{% hint style="warning" %}

* Make sure to go through the algorithms in all tabs.
* It may be necessary to restart Remote Desktop Manager for the solution to take effect.
  {% endhint %}

### Change the global algorithms with the Devolutions.PowerShell module

The global algorithm settings (***File*** – ***Settings*** – ***Entry types*** – ***Sessions*** – ***Terminal*** – ***Algorithm support***) can also be read and changed with the Devolutions.PowerShell module, for example from a logon script:

* [Get-RDMSshAlgorithmSupport](https://docs.devolutions.net/powershell/powershell-commands/get-rdmsshalgorithmsupport.md) lists every SSH algorithm with its category (`Cipher`, `HostKey`, `Kex` or `Mac`), its name (SshName) and whether it is enabled (IsEnabled).
* [Set-RDMSshAlgorithmSupport](https://docs.devolutions.net/powershell/powershell-commands/set-rdmsshalgorithmsupport.md) enables or disables algorithms. With `-Cipher`, `-HostKey`, `-Kex` or `-Mac`, the listed algorithms of that category are enabled and every other algorithm of the category is disabled; categories that are not specified are left untouched. With objects from `Get-RDMSshAlgorithmSupport` piped in, each algorithm is enabled or disabled according to its IsEnabled property.

These settings apply to the current user on the current computer. They are stored encrypted, so they cannot be copied from one user profile to another. Run `Set-RDMSshAlgorithmSupport` while Remote Desktop Manager is closed: a running Remote Desktop Manager may overwrite the change when it saves its own settings. The change is not enforced: the user can still change the algorithms afterward in Remote Desktop Manager.

```powershell
# Enable one cipher without changing the other algorithms
$algorithm = Get-RDMSshAlgorithmSupport -Category Cipher | Where-Object SshName -eq 'aes128-ctr'
$algorithm.IsEnabled = $true
$algorithm | Set-RDMSshAlgorithmSupport
```

### Custom Powershell command script

If the issue persists on a specific entry, run the following PowerShell script in Remote Desktop Manager.

1. Right-click on the problematic entry, then select ***Edit*** – ***Edit (special actions)***.
2. In the ***Edit – Special action selection*** window, select the ***Custom PowerShell command*** general special action and click ***OK***.
3. Paste the following script in the ***Command*** field:

   ```powershell
   $Connection.Terminal.AlgorithmSupportMode = "Custom"
   $Connection.Terminal.SshAlgorithmCipherList = "aes256-gcm@openssh.com=True;aes128-gcm@openssh.com=True;aes128-cbc=True;aes192-cbc=True;aes256-cbc=True;rijndael-cbc@lysator.liu.se=True;3des-cbc=True"
   $Connection.Terminal.SshAlgorithmHostKeyList = "ssh-dss=True"
   $Connection.Terminal.SshAlgorithmKexList = "diffie-hellman-group14-sha1=True;diffie-hellman-group-exchange-sha1=True;diffie-hellman-group1-sha1=True"
   $Connection.Terminal.SshAlgorithmMacList = "hmac-sha1-96=True;hmac-sha1=True;hmac-md5-96=True;hmac-md5=True"
   $RDM.Save();
   ```
4. Click ***OK***.
5. A notification should confirm the success of the script. Click ***OK*** and retest the session.

### See also

* [Devolutions Academy – Configure SSH algorithm support](https://academy.devolutions.net/student/page/3288493-configure-ssh-algorithm-support?sid_i=0)


---

# 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/powershell/remote-desktop-manager-powershell/ssh-algorithm-support.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.
