Running Subversion from a remote machine using SSH

Here is how to set up Subversion for user johndoe:

1. Log on to ssh-machine.domain.com

Type

svnadmin create svnrepository

this will create $HOME/svnrepository.

Type pwd to get your home directory. For example:

/home/johndoe

2. On your home machine you can then do

mkdir mysvn
cd mysvn
svn checkout svn+ssh://johndoe@ssh-machine.domain.com/home/john/svnrepository

That will check out your SVN repository via SSH.

3. To import your existing files from your local machine type

svn import svn+ssh://johndoe@ssh-machine.domain.com/home/john/svnrepository