[linux] svn over HTTP proxy

I'm on laptop (Ubuntu) with a network that use HTTP proxy (only http connections allowed).
When I use svn up for url like 'http://.....' everything is cool (google chrome repository works perfect), but right now I need to svn up from server with 'svn://....' and I see connection refused.
I've set proxy configuration in /etc/subversion/servers but it doesn't help.
Anyone have opinion/solution?

This question is related to linux svn ubuntu proxy

The answer is


In /etc/subversion/servers you are setting http-proxy-host, which has nothing to do with svn:// which connects to a different server usually running on port 3690 started by svnserve command.

If you have access to the server, you can setup svn+ssh:// as explained here.

Update: You could also try using connect-tunnel, which uses your HTTPS proxy server to tunnel connections:

connect-tunnel -P proxy.company.com:8080 -T 10234:svn.example.com:3690

Then you would use

svn checkout svn://localhost:10234/path/to/trunk

Ok, this should be really easy:

$ sudo vi /etc/subversion/servers

Edit the file:

[Global]
http-proxy-host=my.proxy.com
http-proxy-port=3128

Save it, run svn again and it will work.


Ok, this should be really easy:

$ sudo vi /etc/subversion/servers

Edit the file:

[Global]
http-proxy-host=my.proxy.com
http-proxy-port=3128

Save it, run svn again and it will work.


If you can get SSH to it you can an SSH Port-forwarded SVN server.

Use SSHs -L ( or -R , I forget, it always confuses me ) to make an ssh tunnel so that

127.0.0.1:3690 is really connecting to remote:3690 over the ssh tunnel, and then you can use it via

svn co svn://127.0.0.1/....

If you can get SSH to it you can an SSH Port-forwarded SVN server.

Use SSHs -L ( or -R , I forget, it always confuses me ) to make an ssh tunnel so that

127.0.0.1:3690 is really connecting to remote:3690 over the ssh tunnel, and then you can use it via

svn co svn://127.0.0.1/....

If you can get SSH to it you can an SSH Port-forwarded SVN server.

Use SSHs -L ( or -R , I forget, it always confuses me ) to make an ssh tunnel so that

127.0.0.1:3690 is really connecting to remote:3690 over the ssh tunnel, and then you can use it via

svn co svn://127.0.0.1/....

If you can get SSH to it you can an SSH Port-forwarded SVN server.

Use SSHs -L ( or -R , I forget, it always confuses me ) to make an ssh tunnel so that

127.0.0.1:3690 is really connecting to remote:3690 over the ssh tunnel, and then you can use it via

svn co svn://127.0.0.1/....

Okay, this topic is somewhat outdated, but as I found it on google and have a solution this might be interesting for someone:

Basically (of course) this is not possible on every http proxy but works on proxies allowing http connect on port 3690. This method is used by http proxies on port 443 to provide a way for secure https connections. If your administrator configures the proxy to open port 3690 for http connect you can setup your local machine to establish a tunnel through the proxy.

I just was in the need to check out some files from svn.openwrt.org within our companies network. An easy solution to create a tunnel is adding the following line to your /etc/hosts

127.0.0.1 svn.openwrt.org

Afterwards, you can use socat to create a tcp tunnel to a local port:

while true; do socat tcp-listen:3690 proxy:proxy.at.your.company:svn.openwrt.org:3690; done

You should execute the command as root. It opens the local port 3690 and on connection creates a tunnel to svn.openwrt.org on the same port.

Just replace the port and server addresses on your own needs.


Okay, this topic is somewhat outdated, but as I found it on google and have a solution this might be interesting for someone:

Basically (of course) this is not possible on every http proxy but works on proxies allowing http connect on port 3690. This method is used by http proxies on port 443 to provide a way for secure https connections. If your administrator configures the proxy to open port 3690 for http connect you can setup your local machine to establish a tunnel through the proxy.

I just was in the need to check out some files from svn.openwrt.org within our companies network. An easy solution to create a tunnel is adding the following line to your /etc/hosts

127.0.0.1 svn.openwrt.org

Afterwards, you can use socat to create a tcp tunnel to a local port:

while true; do socat tcp-listen:3690 proxy:proxy.at.your.company:svn.openwrt.org:3690; done

You should execute the command as root. It opens the local port 3690 and on connection creates a tunnel to svn.openwrt.org on the same port.

Just replace the port and server addresses on your own needs.


If you're using the standard SVN installation the svn:// connection will work on tcpip port 3690 and so it's basically impossible to connect unless you change your network configuration (you said only Http traffic is allowed) or you install the http module and Apache on the server hosting your SVN server.


when you use the svn:// URI it uses port 3690 and probably won't use http proxy


when you use the svn:// URI it uses port 3690 and probably won't use http proxy


If you're using the standard SVN installation the svn:// connection will work on tcpip port 3690 and so it's basically impossible to connect unless you change your network configuration (you said only Http traffic is allowed) or you install the http module and Apache on the server hosting your SVN server.


If you're using the standard SVN installation the svn:// connection will work on tcpip port 3690 and so it's basically impossible to connect unless you change your network configuration (you said only Http traffic is allowed) or you install the http module and Apache on the server hosting your SVN server.


when you use the svn:// URI it uses port 3690 and probably won't use http proxy


when you use the svn:// URI it uses port 3690 and probably won't use http proxy


svn:// doesn't talk http, therefor there's nothing a http proxy could do.

Any reason why http doesn't work? Have you considered https? If you really need it, you probably have to have port 3690 opened in your firewall.


svn:// doesn't talk http, therefor there's nothing a http proxy could do.

Any reason why http doesn't work? Have you considered https? If you really need it, you probably have to have port 3690 opened in your firewall.


svn:// doesn't talk http, therefor there's nothing a http proxy could do.

Any reason why http doesn't work? Have you considered https? If you really need it, you probably have to have port 3690 opened in your firewall.


svn:// doesn't talk http, therefor there's nothing a http proxy could do.

Any reason why http doesn't work? Have you considered https? If you really need it, you probably have to have port 3690 opened in your firewall.


If you're using the standard SVN installation the svn:// connection will work on tcpip port 3690 and so it's basically impossible to connect unless you change your network configuration (you said only Http traffic is allowed) or you install the http module and Apache on the server hosting your SVN server.


Questions with linux tag:

grep's at sign caught as whitespace How to prevent Google Colab from disconnecting? "E: Unable to locate package python-pip" on Ubuntu 18.04 How to upgrade Python version to 3.7? Install Qt on Ubuntu Get first line of a shell command's output Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running? Run bash command on jenkins pipeline How to uninstall an older PHP version from centOS7 How to update-alternatives to Python 3 without breaking apt? How to post raw body data with curl? Copy Files from Windows to the Ubuntu Subsystem How to use local docker images with Minikube? Can Windows Containers be hosted on linux? gradlew command not found? ssh connection refused on Raspberry Pi Composer: file_put_contents(./composer.json): failed to open stream: Permission denied Curl : connection refused boto3 client NoRegionError: You must specify a region error only sometimes gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now sudo: docker-compose: command not found How to upgrade pip3? How can I remove jenkins completely from linux Linux Command History with date and time MySQL fails on: mysql "ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded" What is difference between arm64 and armhf? How to redirect output of systemd service to a file Retrieve last 100 lines logs Failed to find Build Tools revision 23.0.1 Run an Ansible task only when the variable contains a specific string What does `set -x` do? How to edit a text file in my terminal Starting a shell in the Docker Alpine container How to run SUDO command in WinSCP to transfer files from Windows to linux Fail during installation of Pillow (Python module) in Linux How to install Android SDK on Ubuntu? How do I delete virtual interface in Linux? What is the default root pasword for MySQL 5.7 Docker command can't connect to Docker daemon How to find files modified in last x minutes (find -mmin does not work as expected) Can I use Homebrew on Ubuntu? Pycharm and sys.argv arguments Ubuntu: OpenJDK 8 - Unable to locate package Fork() function in C Amazon Linux: apt-get: command not found Ionic android build Error - Failed to find 'ANDROID_HOME' environment variable Ubuntu: Using curl to download an image Docker error response from daemon: "Conflict ... already in use by container" Curl command without using cache Can't get private key with openssl (no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY)

Questions with svn tag:

Error "can't use subversion command line client : svn" when opening android project checked out from svn How to view changes made to files on a certain revision in Subversion Intellij idea subversion checkout error: `Cannot run program "svn"` How change default SVN username and password to commit changes? How to rename a file using svn? Connect Android Studio with SVN svn: E155004: ..(path of resource).. is already locked SVN Commit failed, access forbidden How to add an existing folder with files to SVN? Update OpenSSL on OS X with Homebrew Svn switch from trunk to branch Change SVN repository URL SVN commit command svn cleanup: sqlite: database disk image is malformed How do I revert an SVN commit? SVN Repository on Google Drive or DropBox Resolving tree conflict SVN icon overlays not showing properly Failed to load JavaHL Library Working copy locked error in tortoise svn while committing How do I output the difference between two specific revisions in Subversion? Where is the user's Subversion config file stored on the major operating systems? SVN - Checksum mismatch while updating Subversion stuck due to "previous operation has not finished"? Folder is locked and I can't unlock it Jenkins CI: How to trigger builds on SVN commit SVN "Already Locked Error" How to fix Subversion lock error How to discard local changes in an SVN checkout? Deleting a folder from svn repository Cannot connect to repo with TortoiseSVN Working Copy Locked Download an SVN repository? Does svn have a `revert-all` command? How to delete an SVN project from SVN repository SVN upgrade working copy SVN change username Merge a Branch into Trunk What ports need to be open for TortoiseSVN to authenticate (clear text) and commit? List files committed for a revision Is there a Subversion command to reset the working copy? How can I commit a single file using SVN over a network? Recover SVN password from local cache How to get diff between all files inside 2 folders that are on the web? What does the red exclamation point icon in Eclipse mean? Reverting to a previous revision using TortoiseSVN SVN: Folder already under version control but not comitting? How do you see recent SVN log entries? Why do I keep getting 'SVN: Working Copy XXXX locked; try performing 'cleanup'? SVN check out linux

Questions with ubuntu tag:

grep's at sign caught as whitespace "E: Unable to locate package python-pip" on Ubuntu 18.04 How to Install pip for python 3.7 on Ubuntu 18? "Repository does not have a release file" error ping: google.com: Temporary failure in name resolution How to install JDK 11 under Ubuntu? How to upgrade Python version to 3.7? Issue in installing php7.2-mcrypt Install Qt on Ubuntu Failed to start mongod.service: Unit mongod.service not found When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0) Cannot open new Jupyter Notebook [Permission Denied] Can't install laravel installer via composer Yarn install command error No such file or directory: 'install' Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running? How to completely uninstall python 2.7.13 on Ubuntu 16.04 How to update-alternatives to Python 3 without breaking apt? How to open the terminal in Atom? How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit? How to install "ifconfig" command in my ubuntu docker image? How to install pip for Python 3.6 on Ubuntu 16.10? Default password of mysql in ubuntu server 16.04 How to install PHP intl extension in Ubuntu 14.04 Unable to set default python version to python3 in ubuntu updating nodejs on ubuntu 16.04 Docker Repository Does Not Have a Release File on Running apt-get update on Ubuntu Curl : connection refused How to install all required PHP extensions for Laravel? Getting permission denied (public key) on gitlab Cannot import keras after installation Docker - Ubuntu - bash: ping: command not found Copy Paste in Bash on Ubuntu on Windows How to install php-curl in Ubuntu 16.04 PHP XML Extension: Not installed webpack command not working sudo: docker-compose: command not found How to find which version of TensorFlow is installed in my system? How to fix git error: RPC failed; curl 56 GnuTLS How to tell if tensorflow is using gpu acceleration from inside python shell? Docker Error bind: address already in use MySQL fails on: mysql "ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded" How to use systemctl in Ubuntu 14.04 Package php5 have no installation candidate (Ubuntu 16.04) How to enable php7 module in apache? Is there a keyboard shortcut (hotkey) to open Terminal in macOS? To enable extensions, verify that they are enabled in those .ini files - Vagrant/Ubuntu/Magento 2.0.2 After installing with pip, "jupyter: command not found" How to verify if nginx is running or not? How to install Android SDK on Ubuntu? Docker-Compose can't connect to Docker Daemon

Questions with proxy tag:

Axios having CORS issue Running conda with proxy WebSockets and Apache proxy : how to configure mod_proxy_wstunnel? "Proxy server connection failed" in google chrome Set proxy through windows command line including login parameters Could not resolve all dependencies for configuration ':classpath' Problems using Maven and SSL behind proxy Using npm behind corporate proxy .pac git returns http error 407 from proxy after CONNECT Forwarding port 80 to 8080 using NGINX Cannot download Docker images behind a proxy How to see the proxy settings on windows? How can I set a proxy server for gem? How to clear https proxy setting of NPM? How to change proxy settings in Android (especially in Chrome) Proxy Error 502 : The proxy server received an invalid response from an upstream server How to create a simple http proxy in node.js? How to use vagrant in a proxy environment? Forward request headers from nginx proxy server What is com.sun.proxy.$Proxy Connect with SSH through a proxy How to get pip to work behind a proxy server Node.js global proxy setting bower proxy configuration SSL Proxy/Charles and Android trouble Running Selenium Webdriver with a proxy in Python How can I connect to a Tor hidden service using cURL in PHP? Using pip behind a proxy with CNTLM Registry key for global proxy settings for Internet Explorer 10 on Windows 8 Visual Studio Error: (407: Proxy Authentication Required) How to make python Requests work via socks proxy NGINX to reverse proxy websockets AND enable SSL (wss://)? npm behind a proxy fails with status 403 How to use HTTP_X_FORWARDED_FOR properly? How do I set proxy for chrome in python webdriver? How to set proxy for wget? Proxy with express.js The proxy server received an invalid response from an upstream server Common HTTPclient and proxy How to use pip on windows behind an authenticating proxy Proxy Basic Authentication in C#: HTTP 407 error performing HTTP requests with cURL (using PROXY) How to fill in proxy information in cntlm config file? Maven plugin not using Eclipse's proxy settings Gradle proxy configuration How do I configure the proxy settings so that Eclipse can download new plugins? How to preserve request url with nginx proxy_pass Using an HTTP PROXY - Python How to use CURL via a proxy? How can I use an http proxy with node.js http.Client?