User Tools

Site Tools


corkscrew_-_ssh_over_https

Corkscrew_-_ssh_over_https

= CorkScrew - A Tool for Tunnelling SSH over HTTP Proxies etc. =

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 corkscrew

Firstly get Corkscew: http://www.agroman.net/corkscrew/

Or locally at: http://wiki.kartbuilding.net/corkscrew-2.0.tar.gz mkdir /home/user/corkscrew cd /home/user/corkscrew wget http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz gunzip * tar -xvf cork….

We are going installing corkscrew in the user home directory.

Edit 'configure' and change this line (below) to install it in our home dir.: ac_default_prefix=/home/user/corkscrew/corkscrew-2.0/bin/corkscrew

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


More info at: https://wiki.skynet.ie/Users/CSIS

Thanks again to Skynet. This works sweet with Redbrick who dont allow external ssh, and who proxy everything.

corkscrew_-_ssh_over_https.txt · Last modified: 2022/07/19 21:13 by 127.0.0.1