Creating a forwarded port within an SSH tunnel

前端 未结 2 1101
感情败类
感情败类 2020-12-06 05:38

I\'m attempting to use SSH.NET to create a tunnel from localhost:3306 to port 3306 on a remote machine:

  PrivateKeyFile file = new PrivateKeyFi         


        
2条回答
  •  广开言路
    2020-12-06 06:33

    After hitting the same problem and analyzing it, and considering I came to the conclusion that it is a bug (though it might be considered arguable, clearly the behavior surprises users of SSH.NET API).

    So I reported it on Unexpected behavior (a.k.a. bug) on local tunnel · Issue #117 · sshnet/SSH.NET · GitHub.

    Until it is fixed, the workaround in c# - Creating a forwarded port within an SSH tunnel - Stack Overflow works.

提交回复
热议问题