You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
I created a console app with NSch.dll and the required Sharpen and Mono dlls. It can connect to the SSH server (from Windows 7 to Debian), but cannot forward remote port 10080 to my local machine's port 8080. However, reverse tunneling does work: it can forward my local port 10080 to remote port 8080.
var session = jsch.GetSession("root", "192.168.1.136", 22);
session.SetPassword("password");
session.SetConfig("StrictHostKeyChecking", "no");
session.Connect();
//works. I get back the server version.
Console.WriteLine("SSH Server: " + session.GetServerVersion());
int assignedPort = session.SetPortForwardingL(8080, "192.168.1.136", 10080);
//does not work, although I properly get back the assigned port.
Console.WriteLine("Assigned Port: " + assignedPort);
I created a console app with NSch.dll and the required Sharpen and Mono dlls. It can connect to the SSH server (from Windows 7 to Debian), but cannot forward remote port 10080 to my local machine's port 8080. However, reverse tunneling does work: it can forward my local port 10080 to remote port 8080.
var session = jsch.GetSession("root", "192.168.1.136", 22);
session.SetPassword("password");
session.SetConfig("StrictHostKeyChecking", "no");
session.Connect();
//works. I get back the server version.
Console.WriteLine("SSH Server: " + session.GetServerVersion());
int assignedPort = session.SetPortForwardingL(8080, "192.168.1.136", 10080);
//does not work, although I properly get back the assigned port.
Console.WriteLine("Assigned Port: " + assignedPort);
//works fine.
session.SetPortForwardingR(8080, "localhost", 10080);
Is this a bug or I am doing something wrong?
Karl
The text was updated successfully, but these errors were encountered: