Corkscrew is a tool for tunneling SSH through HTTP proxies. It’s developed by Pat Padgett and can be downloaded at:
http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz
Corkscrew installation in Linux (RHEL/CentOS/Fedora/Oracle):
1. Download corkscrew-2.0.tar.gz and extract:
$ tar -xvf corkscrew-2.0.tar.gz
2. Go to the corkscrew-2.0 directory and execute configure:
$ cd corkscrew-2.0
$ ./configure
3. Compile:
$ make
4. su to root and install the program.
By default, it will install it in usr/local/bin
# make install
5. Create a file name config under the .ssh directory in your home directory and change the permision to 600:
$ vi $HOME/.ssh/config
$ chmod 600 $HOME/.ssh/config
6. The config file will contain the ProxyCommand with the following syntax:
host externalDomain.com
ProxyCommand /Path/corkscrew proxyServer.com 80 %h %p
Example of config file with two external domains:
host mydomain_1.com
ProxyCommand /usr/local/bin/corkscrew www-proxy.site.com 80 %h %p
host mydomain_2.com
ProxyCommand /usr/local/bin/corkscrew www-proxy.site.com 80 %h %p
7. To use, just ssh to the external domain:
$ ssh username@mydomain_1.com