svn over putty over http (over proxy)

A while ago, someone asked me about accessing their svn server from inside a customer network, which blocks everything except port 80. I didn't have an answer at the time. Then, I was at a customer site last week and ran into a similar problem. This is how I overcame it:

  1. Set up your HTTP server to proxy SSH. See here.

  2. Tunnel the svn port through PuTTY. See here.

  3. Add an entry to your %windir%\system32\drivers\etc\hosts file:

    # SVN Server
    127.0.0.1 svnhost.mycompany.com

    This is done so that you don't have to change your current SVN client settings.

  4. If the customer network happens to use a web proxy, enter the proxy settings in the PuTTY's Connection\Proxy panel.

0 comments: