how to start ssh reverse tunnel?

Advertisement

geek569
Joined:
Posts:
1

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,632
Location:
Prague, Czechia

Re: how to start ssh reverse tunnel?

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

Reply with quote

Advertisement

You can post new topics in this forum