Search:  
Gentoo Wiki

Corkscrew

Contents

About

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:

Install

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 http://www.agroman.net/corkscrew/.

cd /usr/src/
wget http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz
tar -xvf corkscrew-2.0.tar.gz

Then do the following to compile:

./configure
make
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

Credits

More info at: https://wiki.skynet.ie/Users/CSIS Thanks again to Skynet. This works sweet with Redbrick who do not allow external ssh, and who proxy everything.

Source: http://wiki.kartbuilding.net/index.php/Corkscrew_-_ssh_over_https

See also

Retrieved from "http://www.gentoo-wiki.info/Corkscrew"

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