Suppose you wish to access services such as ssh on a remote server, but you need to get through a proxy that only permits http and friends. This brief tutorial on how to get around that oppressive proxy will bring together the following two resources:
friendly.ssh-server.comand operates on port 443. This is the default port for https, so you should be able to access it through the proxy.
proxy-server.oppressive-regime.comand runs on port 8080 on your proxy server.
You'll need the Net::Proxy module for Perl. If you're in a Debian-like Linux system (such as Debian or Ubuntu), you can obtain this module by running:
sudo apt-get install libnet-proxy-perl
You also need the front-end to this perl module, connect-tunnel. Save the connect-tunnel script into your path and make it executable.
If you plan to use connect-tunnel a lot, you will want a script that calls connect-tunnel with your preferred values. Save nydus into your path, replace the default values with the ones that you prefer, and make it executable.
Now you should be able to establish the tunnel using the command,
Finally, you should be able to use the tunnel like so:
ssh -p 12345 RemoteUsername@localhost
Last updated Friday, 25 October 2013.
Copyright Tim Rice 2013.
Disclaimer: The content and style of this website are the responsibility of Tim Rice. They do not represent the views, policies or opinions of The University of Melbourne, which is a very serious institution that takes itself seriously. Only a few animals were harmed in the construction of this website. One, two, a dozen, who's counting?