Remote Port Forwarding is not working with OpenSSH Server - WeOnlyDo Discussion board

Remote Port Forwarding is not working with OpenSSH Server (General questions)

by Jasmine, Tuesday, March 03, 2015, 18:12 (3551 days ago) @ Kedar Babar

Hi Kedar.

I don't think this line is correct:

wodSSHTunnel1.Channels.Add(wodSSHTunnelCOMLib.ForwardTypesEnum.RemoteListen, "0.0.0.0", 23, "0.0.0.0", 8000);

Second '0.0.0.0' makes sense, it means "bind all interfaces" on port 8000.

But first '0.0.0.0' would mean 'connect to all interfaces' on port 23, and that is incorrect. Try to change it to

wodSSHTunnel1.Channels.Add(wodSSHTunnelCOMLib.ForwardTypesEnum.RemoteListen, "127.0.0.1", 23, "0.0.0.0", 8000);

or instead of 127.0.0.1 give real IP of local wodSSHTunnel client, or whereever he needs to redirect remote port.

I hope this helps!
Jasmine.


Complete thread: