Multiple ssh tunnel hops

avatar

Is there any way to make multiple tunnel hops in a single session?

I currently make a single tunnel using the VPN settings, but I have a new customer that requires at least one additional jump point before logging on to the destination machine. Is this possible to automate end to end within RDM?

I thought I could use the 'Before Connect' using the command line option but that opens a completely new Remote Desktop Manager application.

The best I can do it to initiate the first ssh tunnel manually, and then it automatically opens the 2nd tunnel using the VPN settings.

This means I always need to have that first session open during any connectivity to that customers machines. If I close it by accident, everything at the next level disconnects.

All Comments (16)

avatar

Hello,

If you right click on the root of the vault > properties, you can access the vault settings. Then, you can check "Allow VPN chaining with SSH entries".

The way you would configure this would then be to create two SSH Tunnel entries (Tunnel1, Tunnel2). Configure Tunnel1's VPN/SSH/Gateway tab to point to Tunnel2. Then, configure your desired entry (for example, an RDP entry) to point to Tunnel1. Then, when you open the RDP, it should open Tunnel2 > Tunnel1 > RDP.

Let me know if this works for you.

Regards,

Hubert Mireault

avatar

I have all of the other options except for that last "Allow VPN chaining with SSH entries"

I assume this was introduced after v2020.1.20 and I will need to upgrade to get it?

avatar

I have now upgraded to the latest version and I can see this.

However how do I configure the SSH tunnel to use dynamic port for the RDP session if I use an existing SSH session? This is quite different to how I usually use VPN options.

Edit: I currently use RDM in a way that 1000's of RDP sessions use the dynamic port via VPN settings.

I can't change this to setup a new ssh forwarder for each entry, that's not going to fly. It needs to be dynamic so hopefully it's just something I'm not able to see and can happen

avatar

Hello,

If you pick an existing SSH tunnel by selecting this option in the VPN/SSH/Gateway tab:

You should then be able to choose your SSH Tunnel, as well as configure it with the dynamic port:

Then, that configured tunnel should point to another tunnel in its VPN/SSH/Gateway settings, and it will open that one first.

Let me know if I'm missing a part of your scenario or if this works for you.

Regards,

Hubert Mireault