The do's, do not's & maybe's of Computers.
RSS icon Email icon Home icon
  • Installing Corkscrew on Mac OS X 10.5

    Posted on March 13th, 2009 david 1 comment

    So I wanted to get around a proxy that was really bothering me. It would not allow me to get ssh access out of the network that I am in. After talking to a mate of mine that is a big Linux head (especially Debian) I decided to look into Corkscrew.
    It seems to do the trick nicely, allowing me to tunnel ssh through a HTTP Proxy.
    So to install it on Mac OS X 10.5.6

    Step 1. Getting the Source and Other Tools

    The first thing to do is to get the source for corkscrew so that it can be complied for your platform (I had a very quick look for some binaries for OS X, but no joy).

    Next you will need the gcc compiler…This is included in the XCode Tools that come with OS X 10.5 on Disk 2 and can be install from there…You only need this if you do not have gcc install already

    Step 2 A. Compiling from Source

    This requires you to compile the source so that you can run the application.
    Run the following commands from a commandline:
    1. Change to the directory where you downloaded the files
    2. Untar them: tar -xf corkscrew-2.0.tar.gz
    3. Change to the new directory that is created
    4. Run: ./configure –host=apple (for me apple was not reconised as an OS but it still worked when i installed it)
    5. In the same directory run: make then make install

    CorkScrew has now been compiled for your platform (here Mac OS X) and has been installed into the default path or /usr/local/bin/corkscrew

    Step 2 B. Installing via Ports

    If you have Darwin Ports installed you can simply get and build the Corkscrew code by running: sudo port install corkscrew

    Then you can modify the configuration for your ssh client much like Step 3, but you must point to that binary for corkscrew i.e: /opt/local/bin/corkscrew instead.

    Step 3. Configuring SSH to use CorkScrew

    Now that Corkscrew has been install, you must tell OpenSSH to use it. In your users home directory for ssh you must add an extra line to the .ssh config file to specify have proxy to tunnel threw and if required authentication for that proxy (a username and password)
    Add the following line to the config file:
    ProxyCommand /usr/local/bin/corkscrew proxy.somedomain.com 8080 %h %p “path to file with authentication”

    In the file that contains your authentication details for the proxy, the format should be usrname:password

    Step 4. Testing
    Once you have compiled CorkScrew for Mac OS X 10.5 and have configured OpenSSH to use it and setup the authentication for the proxy if needed, you should be ready to test.
    You obviously must be behind the proxy before it will work, simply run:
    ssh user@someserver.com

    And that should be it.It can take some time sometimes but I haven’t had any trouble with it yet and works great.

     

    One response to “Installing Corkscrew on Mac OS X 10.5”

    1. [...] To use it with commandline (on MacOSX) ssh: http://blog.strotos.com/?p=15 [...]

Disclaimer: All information published on this website is for knowledge purposes only. This website and the author's of it's content cannot be held responsible for any loss/damage to a user's computer (either software or hardware), which may have occurred as a result of the information posted above. All information published on this website is the expressed opinion of it's authors. This information is provided as is with no acknowledgement of responsibility, liability or guilt for any damage resulting from it's use.
©2009 Strotos Communications