Hi,
Been looking at how to get this done, but having troubles.
I run the following command with the Windows 10 SSH client to open a port on the destination machine. Once prompted for my password I can open Chrome to http://localhost:12345 to access the webpage on port 9001 on the destination machine
ssh -L 12345:localhost:12345 login_name@jump_machine -t ssh -L 12345:127.0.0.1:9001 login_name@destination_machine
Login name is the same on jump and destination machine
I cannot get it working in RDM.
Opening the session looks like it works, but when I open Chrome I cannot open the page via http://localhost:12345
Log from the SSH Tunnel
[5/05/2020 1:27:07 AM] Starting SSH, verbose level: 2 [5/05/2020 1:27:07 AM] Setting up connection [5/05/2020 1:27:07 AM] Connecting as a1228076 [5/05/2020 1:27:07 AM] SSH banner: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.8 [5/05/2020 1:27:07 AM] Sending kex init [5/05/2020 1:27:07 AM] Received kex init [5/05/2020 1:27:07 AM] Selected algorithms: curve25519-sha256@libssh.org, rsa-sha2-256, chacha20-poly1305@openssh.com, chacha20-poly1305@openssh.com, implicit by cipher, implicit by cipher, none, none [5/05/2020 1:27:07 AM] Sending Ed25519 kex init [5/05/2020 1:27:07 AM] Received Ed25519 kex reply [5/05/2020 1:27:07 AM] Successfully authentified server [5/05/2020 1:27:07 AM] Sending new keys message [5/05/2020 1:27:07 AM] Sending userauth service request [5/05/2020 1:27:07 AM] Received new keys message [5/05/2020 1:27:07 AM] Received service accepted message [5/05/2020 1:27:07 AM] Sending userauth init request [5/05/2020 1:27:07 AM] Received userauth failure: publickey,password [5/05/2020 1:27:07 AM] Starting password authentication [5/05/2020 1:27:07 AM] Sending userauth password request [5/05/2020 1:27:07 AM] Received userauth success [5/05/2020 1:27:07 AM] User authenticated successfuly by password [5/05/2020 1:27:07 AM] Listening on 127.0.0.1:12345 [5/05/2020 1:27:07 AM] Received global request: hostkeys-00@openssh.com , no need to reply
This is the output in the SSH tunnel log when I navigate to http://localhost:12345
(replaced the machine name)
[5/05/2020 1:28:29 AM] Sending forward channel open request: 0/- [destination_machine]:9001 [5/05/2020 1:30:36 AM] Received channel open failure: 0/0 2 Connection timed out [5/05/2020 1:30:36 AM] Unable to connect remote end of tunnel: aborting connection 127.0.0.1:12345 -> [destination_machine]:9001 [5/05/2020 1:30:36 AM] Closed tunnel: 127.0.0.1:12345 -> [destination_machine]:9001 [5/05/2020 1:30:36 AM] Sending forward channel open request: 0/- [destination_machine]:9001
Any help would be greatly appreciated.
Hello,
Thank you for contacting the support department, may I ask you what is the version of RDM that you are using?
Also, some time using 127.0.0.1 and localhost at another place could cause some issue like that.
Could you try on chrome using http://127.0.0.1:12345 and tell me if it works well?
Another test will be to change the local port for an ephemeral port that is free faster by the computer so a port between 49,152 and 65,535.
Regards,
David Grandolfo
Hi David,
Running 2020.1.20.0 64bit on Windows
I tired the following
[6/05/2020 2:00:50 AM] Starting SSH, verbose level: 2 [6/05/2020 2:00:50 AM] Setting up connection [6/05/2020 2:00:50 AM] Connecting as a1228076 [6/05/2020 2:00:50 AM] SSH banner: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.8 [6/05/2020 2:00:50 AM] Sending kex init [6/05/2020 2:00:50 AM] Received kex init [6/05/2020 2:00:50 AM] Selected algorithms: curve25519-sha256@libssh.org, rsa-sha2-256, chacha20-poly1305@openssh.com, chacha20-poly1305@openssh.com, implicit by cipher, implicit by cipher, none, none [6/05/2020 2:00:50 AM] Sending Ed25519 kex init [6/05/2020 2:00:50 AM] Received Ed25519 kex reply [6/05/2020 2:00:50 AM] Successfully authentified server [6/05/2020 2:00:50 AM] Sending new keys message [6/05/2020 2:00:50 AM] Sending userauth service request [6/05/2020 2:00:50 AM] Received new keys message [6/05/2020 2:00:50 AM] Received service accepted message [6/05/2020 2:00:50 AM] Sending userauth init request [6/05/2020 2:00:50 AM] Received userauth failure: publickey,password [6/05/2020 2:00:50 AM] Starting password authentication [6/05/2020 2:00:50 AM] Sending userauth password request [6/05/2020 2:00:50 AM] Received userauth success [6/05/2020 2:00:50 AM] User authenticated successfuly by password [6/05/2020 2:00:50 AM] Listening on localhost:58816 [6/05/2020 2:00:50 AM] Received global request: hostkeys-00@openssh.com , no need to reply [6/05/2020 2:01:56 AM] Sending forward channel open request: 0/- destination_machine:9001 [6/05/2020 2:02:22 AM] Sending forward channel open request: 1/- destination_machine:9001 [6/05/2020 2:04:03 AM] Received channel open failure: 0/0 2 Connection timed out [6/05/2020 2:04:03 AM] Unable to connect remote end of tunnel: aborting connection localhost:58816 -> destination_machine:9001 [6/05/2020 2:04:03 AM] Closed tunnel: localhost:58816 -> destination_machine:9001
Hi David,
I think the error could be the result of a tunnel inside a jump server connection. I would like to do a remote session and look at this with you.
You will receive in the next minutes an email from our ticket system to book a remote session.
Regards,
David Grandolfo
Thanks David.
Hi David,
After investiguation with the engineering department, to support this command we will need to add the Proxy / Jumphost tab for the SSH Tunnel entry.
A feature request has been open with the engineering department. (RDMW-5198)
Regards,
David Grandolfo
HI,
The proxy tab for SSH Tunnel and SSH Port Forwarding has been added in the latest release of RDM (2020.2.10.0).
This beta version can be downloaded at https://remotedesktopmanager.com/home/download#Beta
If you could please test it and inform us the result of it?
Regards,
David Grandolfo
Apologies for the reviving of the old thread. I was trying to accomplish something similar...
Edit: may be not a good idea to revive a 4 year old thread. Will post my question separately.
@everyone,
The new post that alex2 mentioned is here https://forum.devolutions.net/topics/42397/ssh-forward-remote-port-to-local#194625
Best regards,
Jeff Dagenais