ssh shells but with tunnel option

ssh shells but with tunnel option

avatar

I'm looking to set up some sessions to replicate the behavior of putty where you can have a shell, say with a Linux host, but have it connect in a way that creates an ssh tunnel at the same time. I know I could do this with two different sessions but I'm looking to set this up for 10 or so connections, so that could get a little convoluted. I don't need to connect to the tunnel in order to reach the host, it's more so to be able to access the host via shell and then resources on the same network as the host.

What's the best way to approach this?

All Comments (5)

avatar

I assume I could use the putty session type but since it's been deprecated, I should probably do it a different way right?

avatar

Hello,

Creating a SSH Tunnel session first and a SSH Shell session as the second session should do the trick.

Please consult this help article for more details on this feature
https://kb.devolutions.net/rdm_setup_ssh_tunnel.html

Best regards,

Jeff Dagenais

avatar

Yeah, I figured I could do that, just was trying to keep from having to create two sessions per, hahaha

Is there a way I could set up the tunnel session to reference the connection details in the ssh shell session to keep from having to manage credentials in both locations? Maybe I'm not quite following. First time messing with RDM.

avatar

Hello,

Thank you for your quick reply!

A way to achieve this would be to create a Credential Entry (username/password) that holds the credentials needed by your SSH Shell and your SSH Tunnel entries.
forum image

Once this credential entry is created, you will need to go in the properties of your SSH Shell entry and your SSH Tunnel entry and use the dropdown menu next to "Credentials" to select "Linked (Vault)" and then use the ellipsis button to have them point to your credential entry:
forum image

Even though this method needs you to create a third entry, it will allow you to manage your credential from a single entry.

Let me know if that helps!

Best regards,

James Lafleur

avatar

Interesting! I'll try that out