ssh port forwarding

avatar

Hi,
from a linux console I can fw couchbase web console port verry easy.
something like: ssh -L 8091:localhost:8091 msr-uco-jd-prod-cbase01.<domain>
How can i do this in RDM?

All Comments (10)

avatar

Have you try to use the port forward connection type?

David Hervieux

avatar

problem is we use jump servers to connect to each server in the network.
so the map is like this:
my desktop -> ssh to jump server -> ssh to needed server

avatar

How do you do that on Windows without RDM? Do you use Putty or another tool? This could help me understand if it's something we can do.

Regards

David Hervieux

avatar

for jump servers i have defined ssh shell (rebex) sessions with preloaded private key (.ppk)
from this server via ssh i can reach my couchbase server or other servers .

avatar

Can we have support for jumphost for SSH port forward?



Also, can we have the jump host settings inherited from an existing ssh entry?

e.g.

Vault Entry 1:
Connect to host1 - with username, password, private key etc.

Vault Entry 2:
Connect to host2 - with username, password, private key etc and jumphost = Vault entry1.
(Instead of specifying the ssh details separately)

Then maybe we would also be able to chain the Jumphosts.


avatar

Hello,

Thank you for reaching out to us regarding this,

I have a few questions which you can hopefully answer.

  • Which version of RDM are you using?
  • Which type of data source are you using?


That being said, we have the following knowledge base article regarding configuring a Jump Host: https://docs.devolutions.net/rdm/windows/overview/the-devolutions-platform/rdm-jump/#configure-a-jump-host

Once configured this Jump Host can be used in your entry "Properties" under the "VPN/Tunnel/Gateway" section where you can select "Jump Host" for the "Type" field, you can then point to your Jump Host entry under the "Settings (Jump Host)" section.

If you perform this configuration on the parent entry you can set the "Connect" field in the child entries to "Inherited".

Let me know if this helps,

Best regards,

Samuel Dery

avatar

I meant an SSH Jump host.

For ssh connections, I think it's more common to use ssh jump hosts than RDP jump hosts. (But I may be wrong.)

For ssh port forward, when I click VPN/Tunnel/Gateway, in the VPN type, it only allows "MSFT RDP gateway" as the option.
All other options show an error message "This mode is not supported."


I am using android version of RDM. Build # 2023.2.2.5.

avatar

Hello,

Thank you for your reply,

I see, I'm wondering if an SSH Tunnel may work in this case for you?

We have the following knowledge base article regarding this: https://docs.devolutions.net/kb/remote-desktop-manager/how-to-articles/setup-ssh-tunnel/

Let me know,

Best regards,

Samuel Dery

avatar

OK, I was able to get it to work.

It is not jumpbox as I thought. It's regular ssh port forwarding.

We ssh to the jumpbox system and forward the remote's port 22 to localhost:port_x. <~~ This can be done via ssh tunnel or ssh port forward vault entry.
And from another ssh session, we ssh to localhost:port_x.

Is this correct?

Also, what is the difference between ssh tunnel and ssh port forward vault entry?
The only difference I could see is that ssh tunnel entry can create only 1 port tunnel and port forward entry can create more.

avatar

Hello Mandar,

Thank you for your reply,

I'm glad to hear that it is working for you!

From my understanding, SSH Port forwarding forwards specific local ports to ports on the remote server. While an SSH Shell tunnel would do the opposite by forwarding a port from a remote server to a local machine.

Which one to use would depend on your own environment, I'm afraid I could not confirm which would be correct in this case.

Hopefully, this helps, let me know if you have further questions,

Best regards,

Samuel Dery