下面的代码给出了-2 \f25 gaierror Error -2\f6名称或服务-2\f25 not known -2\f6
self.server=sshtunnel.SSHTunnelForwarder(
('abc.int.net', 22),
ssh_username="sshuser",
ssh_password="sshpassword",
remote_bind_address=('remote.address.host', 4040)
)它在windows中运行良好。
发布于 2016-06-24 04:06:50
也尝试传递local_bind_address参数。最好是显式地声明远程端口映射到哪个本地端口。
self.server=sshtunnel.SSHTunnelForwarder(
('abc.int.net', 22),
ssh_username="sshuser",
ssh_password="sshpassword",
remote_bind_address=('remote.address.host', 4040),
local_bind_address=('127.0.0.1', 3331)
)https://stackoverflow.com/questions/30931473
复制相似问题