Sep 27, 2012 at 3:53 PM
Edited Sep 27, 2012 at 6:29 PM
The SSH.NET library times out on the following line in ForwardedPortRemote Start():
code looks like this:
var client = new SshClient("10.1.1.99", 22, user, pass);
client.Connect(): // this succeeds
var port = new ForwardedPortRemote("10.1.1.99", 9000, "10.1.1.33", 443);
// add port handlers
port.Start(); // times out here
IP 10.1.1.33 is localhost (me), and 10.1.1.99 is an SSH server.
I'm trying to forward any requests that go to 10.1.1.99:9000 to myself on port 443 (https). The code never returns from port.Start(), timing out at the WaitHandle() line. Curiously, the forwarding actually
is working until the timeout occurs. What am I doing wrong? Thanks.