+8 votes
by (270 points)
edited

Hi Support,

it would be really helpful if you enrich your SSH to support an easy to use abstracted API for local and remote portforwarding.

Something like this:

var port = SshClient.AddLocalForwardedPort(string localIP, int localPort, string remoteHost, int remotePort);

port.ErrorReceived // a event handler to handle exceptions and gracefully stop the tunnel if some exception is thrown

port.Start(); // starts the local portforwarding
port.Stop();  // stops the local portforwarding

and for remote port forwarding:

var port = SshClient.AddRemoteForwardedPort(string remoteIP, int remotePort, string localHost, int localPort);

// same as above:
port.ErrorReceived
port.Start();
port.Stop();

This would be very helpful!

Regards, Stefan

by (110 points)
edited

I see that Stefan has a valid point here, I am also interested in this post.

by (148k points)
edited

You are both right, this is one of the most-wanted features for our SSH components. I just raised the priority of this task, we should get started with it as soon as the next release is finished.

by (270 points)
edited

That's great to hear, Lukas! I'm really impressed with your components and your support quality. I'm looking forward to the new release and as always, if you want me to test your implementation, shoot me an email and I'm happily volunteering...

by (110 points)
edited

I would further encourage investment in this function. This is a key feature that distinguishes the product and would bring real value. Please implement this!

by (148k points)
edited

This really seems to be one of the most requested features! :-) We will start working on it as soon as we are done with the current release (which will add 'await' support for .NET 4.5, another must-have feature).

by (110 points)
edited

Hi. This is something I'm looking for also if you are need support to raise the priority.

by (148k points)
edited

Thanks! We are nearly done with the current release now and we can finally start working on this in a week or two.

by (110 points)
edited

This is a very important feature to have in an SSH client. Another vote from me.

by (210 points)

Is this already done?

1 Answer

+2 votes
by (148k points)
 
Best answer

A simple API for local and remote SSH port forwarding (tunneling) has been added in Rebex Terminal Emulation 2016 R1. Check out some sample code, and sorry for the long wait!

...