我想在网站www.bitvise.com

时间:2015-07-18 02:02:32

标签: c# ssh proxy socks .net-framework-version

我在C#中使用库“FlowSshNet64_Framework40.dll”(我的操作系统是64位)创建了一个SSH服务器转发连接,但是在导入库到应用程序后我运行错误并按照说明操作:

https://www.bitvise.com/fsd-client

Bitvise.FlowSshNet.Client t = new Client();
t.SetProxyHost("66.172.203.200");
t.SetProxyOptions(true);
t.SetProxyUserName("admin");
t.SetProxyPassword("admin");
t.SetProxyPort(22);
t.SetProxyType(ProxyType.Socks5);
ForwardingRule setup = new ForwardingRule();
setup.ClientToServer = true;
setup.ListInterface = "127.0.0.1";
setup.ListPort = 1080;
ForwardingHandler setup1 = new ForwardingHandler();
if (setup1.IsDisposed)
{
    t.AddForwarding(setup, setup1);
    label1.Text = "connected";
}

错误图片:enter image description here

1 个答案:

答案 0 :(得分:0)

你可以在os 64位上使用FlowSshNet32_Framework40.dll

要运行它,您必须将所有文件复制到相同的目录,例如bin \ Debug。我这样做,并没有错误

Binaries\CiProv32.dll
Binaries\CryptoPP530Fips32.dll
Binaries\FlowSshC32.dll
Binaries\FlowSshNet32_Framework40.dll -> RENAME THIS FILE TO: FlowSshNet32.dll

但是我使用你的代码而不是转发到ssh