我正在使用此代码连接到 SFTP 服务器:
var connectionInfo = new PasswordConnectionInfo(txtHost.Text, 22, txtUsername.Text, txtPassword.Text, ProxyTypes.Http, "209.xx.xxx.xxx", 3128,"proxyUser","proxyPass");
sftp = new SftpClient(connectionInfo);
try
{
sftp.Connect();
addItemToListBox("Connect", "Connect to server Success.");
BeginInvoke((MethodInvoker)delegate()
{
connect_state(false);
});
connection_flag = true;
}
catch
{
addItemToListBox("Connect", "Connect to server failed.");
addItemToListBox("Connect", "Try agine.");
connection_flag = false;
}
现在,当嗅探我与 Wireshark 的连接时,我可以看到 HTTP 请求,包括 SFTP 服务器 IP 地址。
如何对代理服务器隐藏 SFTP 服务器 IP 地址?