Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: how to start ssh reverse tunnel?

No. WinSCP .NET assembly is not a generic purpose SSH library. It's a file transfer library.
geek569

how to start ssh reverse tunnel?

to start an ssh reverse tunnel using SSH.NET library you just write:

var sshClient = new SshClient(remoteHost, username, password);

sshClient.Connect();
var forwardPort = new ForwardedPortRemote(remotePort, localHost, localPort);
sshClient.AddForwardedPort(forwardPort);
forwardPort.Start();


how to get same result using winscp .net library?