Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd really like to know how to checkout a SVN repository from a remote machine that is only serving on the svn protocol (so no WebDAV with Apache etc.) over an SSH connection.

Can someone tell me how to do so?

So, here is the situation once more to clarify:

share|improve this question
1  
Have you tried this: petefreitag.com/item/531.cfm? Specifically, this bit: svn co svn+ssh://<path to repo> –  Ash Nov 5 '13 at 10:11

1 Answer 1

Thank you @Ash, that did it.

So I made a quick overview:

1. If your SVN server is not running on the default port 22: add a tunnel entry to ~/.subversion/config

Open the file, look for [tunnels] and a line, for example:

sshserver = ssh -p [port where your ssh server is running on] -q

For everybody: add -q if you're getting 'Killed by signal 15' when trying to checkout.

2. Checkout using a absolute path from the remote location

In this example we use the configured tunnel entry from step 1.

svn co svn+sshserver://user@server/absolute/path/to/svn/repository/project/

That's it!

More background information:

Basic instructions to connect to a SVN-repo over SSH: http://www.cs.columbia.edu/~crf/crf-guide/resources/software/svn-ssh.html

From the book 'Version Control with Subversion': http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.serverconfig.svnserve.sshauth

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.