|
如果您公司很邪恶,只允许您通过 http(s) proxy 或 socks proxy 访问网络,并且只允许连接有限的端口,您用的上。
如果您想保护个人隐私,您用的上。
总之,如果您身处恶劣网络环境,您用的上。
man ssh_config 搜 proxy ProxyCommand
Specifies the command to use to connect to the server. The com-
mand string extends to the end of the line, and is executed with
/bin/sh. In the command string, `%h' will be substituted by the
host name to connect and `%p' by the port. The command can be
basically anything, and should read from its standard input and
write to its standard output. It should eventually connect an
sshd(8) server running on some machine, or execute sshd -i some-
where. Host key management will be done using the HostName of
the host being connected (defaulting to the name typed by the
user). Setting the command to ``none'' disables this option
entirely. Note that CheckHostIP is not available for connects
with a proxy command.
This directive is useful in conjunction with nc(1) and its proxy
support. For example, the following directive would connect via
an HTTP proxy at 192.0.2.0:
ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
http://daniel.haxx.se/docs/sshproxy.html
http://shsc.info/SSHThroughHTTPProxy
http://blog.paulbetts.org/index. ... ough-a-socks-proxy/ |
|