Users

All Posts (4)

avatar

alberthasani

ProtocolsSharp SSH fails against FortiSwitch OpenSSH 9.9 after hostkeys-prove request

avatar
avatar
avatar
avatar

Hello Alexis, thank you for the guidance. It actually pains me that I have to do this for another 300 switches :) 

at this point, after decades usage of RDM it seems like I will need to switch to something else :(

ProtocolsSharp SSH fails against FortiSwitch OpenSSH 9.9 after hostkeys-prove request

avatar
avatar
avatar
avatar

HHi Alex,

Good news, the workaround worked and I can now connect to the FortiSwitch successfully from RDM.

The UpdateHostKeys=no test with Windows OpenSSH also worked and opened the switch shell normally, which confirmed that the disconnect was triggered by the host key update/proof exchange.

For the RDM workaround, I collected the switch's ED25519 and RSA host keys separately and added the missing RSA key to RDM's known_host file. RDM already had the ED25519 key. After both keys were present, the RDM SSH session opened successfully.

So the issue is resolved from my side without making any changes to the FortiSwitch configuration.

Thanks for pointing me in the right direction and for the detailed troubleshooting steps.

Best regards,

Albert

ProtocolsSharp SSH fails against FortiSwitch OpenSSH 9.9 after hostkeys-prove request

avatar
avatar
avatar
avatar

Hi,

I ran the OpenSSH test twice as requested. On the second connection, the existing ED25519 host key was already trusted.

The connection successfully reaches password authentication:

Authenticated to {masked} ([{masked}]:22) using "password".

The failure happens immediately after the switch sends:

debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0

OpenSSH starts processing the additional host keys:

debug1: client_input_hostkeys: searching C:\Users\{masked}\.ssh\known_hosts for {masked} / (none)

but the remote host then closes the connection:

debug1: channel 0: free: client-session, nchannels 1

Connection to {masked} closed by remote host.

This appears similar to what RDM/ProtocolsSharp is experiencing, although ProtocolsSharp explicitly logs the subsequent:

Sending hostkeys-prove-00@openssh.com request (1 unknown keys)

I also attempted the suggested ssh-keyscan workaround:

ssh-keyscan {masked}

However, no host keys are returned because ssh-keyscan fails with:

choose_kex: unsupported KEX method sntrup761x25519-sha512@openssh.com

 

For that reason, I have not manually modified RDM's known_host file.

Environment:

FortiSwitch model: {masked}

FortiSwitchOS: v7.4.8 build0929

ProtocolsSharp: 2026.10.29.2

Windows OpenSSH: OpenSSH_for_Windows_9.5p2

RDM version: latest

PuTTY still connects successfully to the same target.

Could you advise on the next test, particularly whether there is another supported way to retrieve all server host keys and preload them into RDM's known_host file?

Best regards,
Albert

What I masked

  • Switch IP address → {masked}

  • Windows username/path → {masked}

  • SSH username → {masked}

  • FortiSwitch model → {masked}

  • RDM version → {masked}

ProtocolsSharp SSH fails against FortiSwitch OpenSSH 9.9 after hostkeys-prove request

avatar
avatar
avatar
avatar

RDM SSH Shell cannot establish an interactive session to multiple FortiSwitches.

Environment:

  • RDM: current version

  • ProtocolsSharp: 2026.10.29.2

  • Client OS: Windows

  • Server SSH: OpenSSH_9.9

  • Authentication: password

Authentication succeeds and the session channel is opened, but the connection stalls immediately after ProtocolsSharp processes the OpenSSH host-key update request:

Received userauth success

User authenticated successfully using password method

Sending session channel open request

Received hostkeys-00@openssh.com request

Sending hostkeys-prove-00@openssh.com request (1 unknown keys)

Received channel open confirmation

Sending pty request

SSH session: The operation was canceled

On a previous attempt ProtocolsSharp also produced:

Devolutions.Protocols.Core.Ssh.DoHostkeys()

Devolutions.Protocols.Core.Ssh.ParseGlobalRequestAsync()

Devolutions.Protocols.Core.Ssh.DispatchPacketAsync()

Devolutions.Protocols.Core.Ssh.ProcessLoopAsync()

The same switch, credentials and client workstation connect successfully using PuTTY.

A clean/new RDM SSH Shell entry reproduces the problem.

Tested without resolution:

  • xterm vs xterm-256color

  • Curve25519 vs sntrup761x25519-sha512@openssh.com

  • ChaCha disabled / AES256-CTR

  • restricted host-key algorithms

  • interactive/password authentication settings

Could you confirm whether ProtocolsSharp has a compatibility issue with hostkeys-00@openssh.com / hostkeys-prove-00@openssh.com, and whether there is a way to disable OpenSSH host-key update/proof handling in RDM?

1 - 4 of 4 items