Gentoo Wiki




Corkscrew enables the user to run SSH connections over most HTTP and HTTPS proxy servers. Due to SSH features such as port forwarding, this can allow many types of services to be run safely over the SSH via HTTP connections.

Situation: You want to SSH (via bash/linux command line) to a computer via a HTTP/Socks Proxy from a computer with NO external access. The SSH command itself is not able to use a proxy in order to access external computers. A tunnelling application called corkscrew is required. Here are the steps involved:


You might want to add "net-misc/corkscrew ~arch" to /etc/portage/package.keywords first to get the most current version. Then emerge cokscrew: emerge -av corkscrew.

You can also install it manually by yourself. You can get Corkscew from

cd /usr/src/
tar -xvf corkscrew-2.0.tar.gz

Then do the following to compile:

make install

Edit username/.ssh/config

Use the following in ~/.ssh/config ProxyCommand /home/user/corkscrew/corkscrew-2.0/bin/corkscrew Internal_Proxy_Name ProxyPort %h %p

Then simply login with: ssh username@anyexternalcomputer


More info at: Thanks again to Skynet. This works sweet with Redbrick who do not allow external ssh, and who proxy everything.


See also

Retrieved from ""

Last modified: Sat, 06 Sep 2008 12:44:00 +0000 Hits: 481