LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1690|回复: 5

ssh over proxy (应对恶劣网络环境)

[复制链接]
发表于 2009-10-3 20:22:15 | 显示全部楼层 |阅读模式
如果您公司很邪恶,只允许您通过 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/
 楼主| 发表于 2009-10-3 21:03:29 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-10-4 13:12:37 | 显示全部楼层
俺效力的公司也很邪恶,要经 http proxy。。。
回复 支持 反对

使用道具 举报

发表于 2009-10-7 21:50:03 | 显示全部楼层
俺要是做企业的网管,俺恐怕要跟你们对着干了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-17 23:55:02 | 显示全部楼层

补充资源

http://icmpshell.sourceforge.net/ ICMP Shell


http://github.com/jakkarth/icmptx Tunnel IP over ICMP
http://www.cs.uit.no/~daniels/PingTunnel/ Tunnel TCP connections over ICMP packets

http://www.hsc.fr/ressources/outils/dns2tcp/  relay TCP connections through DNS traffic

http://www1.cs.columbia.edu/~lennox/udptunnel/ Tunnel UDP packets over a TCP connection

http://www.jankratochvil.net/project/tcpoverudp/ Forward TCP connections over UDP without root

http://www.dest-unreach.org/socat/ Multipurpose relay

延伸阅读
http://zarb.org/~gc/html/udp-in-ssh-tunneling.html Performing UDP tunneling through an SSH connection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-20 23:06:02 | 显示全部楼层

用 ssh ProxyCommand 访问防火墙后的内部网络

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表