Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Weird problem on SSH Port Forwarding

$
0
0

Thanks for the reply,

I made typo when I edit the format of the first post, as you point out, 

The code I am using is about the same as yours

  sshClient = new SshClient("10.112.125.42", myUsername, myPassword);
  sshClient.Connect();
  ForwardedPortLocal fowardPort = new ForwardedPortLocal("127.0.0.1", 22100, "10.112.125.42", 22000);
  sshClient.AddForwardedPort(fowardPort);
  fowardPort.Start();
  ForwardedPortLocal fowardPort2 = new ForwardedPortLocal("127.0.0.1", 16100, "10.112.125.42", 16000);
  sshClient.AddForwardedPort(fowardPort2);
  fowardPort2.Start();              
  ForwardedPort fowardPort3 = new ForwardedPortLocal("127.0.0.1", 18500, "10.112.125.42", 18000);
  sshClient.AddForwardedPort(fowardPort3);

I am trying to start a program to set up a ssh tunnel for other applications to use, like Putty port forwarding function.

After further testing I found that the problem is more relate to "connect" to three ports, instead of "starting" 3 forwarding port.

So it works fine if I only connect to 2 ports, but when I connect all 3 ports, 

the message isn't going through the tunnel to reach the server side.

Could it be resources issue?   as I am running on notebook only, not server machine

I am not sure what to test for it, sorry if I couldn't provide enough information 

Thanks


Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>