
If WWW access is allowed through a HTTP proxy, it is possible to use httptunnel and, say, telnet or PPP to connect to a computer outside the firewall. This can be useful for users behind restrictive firewalls. The HTTP requests can be sent via an HTTP proxy if so desired. Httptunnel, available as httptunnel, creates a bidirectional virtual data connection tunneled in HTTP requests. Now, git should be able to tunnel successfully through the HTTP proxy. When git sees the environment variable GIT_PROXY_COMMAND set, it will run the command in $GIT_PROXY_COMMAND and use the program's stdin and stdout, instead of a network socket.Ĭorkscrew proxyhost proxyport GIT_PROXY_COMMAND export GIT_PROXY_COMMAND= /path/to/corkscrewtunnel.sh However, git can be made to tunnel through HTTP proxies using utilities such as corkscrew. Restrictive corporate firewalls typically block the port that git uses. Which creates a SOCKS proxy on localhost:$port. $ ssh -ND port server -o "Prox圜ommand corkscrew proxy_ip_or_domain_name proxy_port destination_ip_or_domain_name destination_port" What we want is a SOCKS tunnel, so we do this: $ ssh server -o "Prox圜ommand corkscrew proxy_ip_or_domain_name proxy_port destination_ip_or_domain_name destination_port"īut that just opens a shell. Opening an SSH connection is pretty simple:


Note: If your proxy does not support the HTTP Connect method, see the other methods below.įor this, we will use corkscrew, a tool for tunneling SSH through HTTP proxies available as corkscrew.
