I want to check out/update the code via proxy since my local connection is slow. I setup ssh tunnel : ssh -D 8090 user@ssh.proxy.net
to forward all the packets to my localhost:8090.
How can I set up subversion to use this?
PROXYsshsvn
I want to check out/update the code via proxy since my local connection is slow. I setup ssh tunnel : ssh -D 8090 user@ssh.proxy.net
to forward all the packets to my localhost:8090.
How can I set up subversion to use this?
Best Answer
You are using SSH to set up a local SOCKS server that tunnels to your SSH server. You mention that your reason for doing that is that "local connection is slow" but I fail to see how tunneling to a SSH server will make it faster.
Anyway, your problem is that Subversion can connect through a HTTP proxy or an SSH tunnel, but it has no idea about SOCKS. So you need to SOCKSify Subversion by capturing all its TCP connects and redirecting them to the SOCKS proxy.
Instead of paraphrasing those who have done it before, I'll point you to their detailed explanations :
Or in a nutshell mostly cut'n'pasted from Oliver's page :
Debian contains two socksifiers that are also available on sourceforge. The most recently updated one is ProxyChains, and it's quite straightforward to configure. Most socksifiers work in a similar fashion so these instructions should be a reasonable general case. To configure ProxyChains you just need to edit $(HOME)/.proxychains/proxychains.conf to have only the following lines:
All you then need to do is 'wrap' svn in ProxyChains.
In the above example, the svn application was none the wiser that its TCP connects to the Subversion server were redirected down your SOCKS proxy."