# Install the tsocks library and shell script.
sudo apt-get install tsocks
# Configure the range of IP addresses you need access to.
sudo nano /etc/tsocks.conf
# Use the OpenSSH client to create a socks proxy (stepping
# stones are hosts used to gain access to private subnets).
ssh -D 1080 stepping.stone
# Now connect to any given address in your configured range.
# tsocks will intercept the connection and route it using
# the SOCKS proxy we created with the previous command.
tsocks ssh 1.2.3.4
Fabric的SSH layer目前不支持网关或代理,但它们“可能会在某个时候修补forking来添加该功能。”(来自here)。在
还有一个关于织物到implement tunneling的悬而未决的问题。在
This blog post建议重写run函数。在
隧道挖掘现在(2013年3月)由Fabric本机支持:请参阅导致代码更改的discussion和带一些基本原理的commit message。在
您可以使用tsocks和OpenSSH客户机的内置支持来创建SOCKS隧道。它需要一些配置,但它工作得很好。下面是我如何开始使用ubuntu10.04。在
事实上,Fabric在没有VPN连接的情况下无法工作,这对我来说是一个很好的解决方案;它只需要对一个主机进行SSH访问。在
相关问题 更多 >
编程相关推荐