Checkout from svn repository over ssh

Solution 1:

  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/
    

More background information:

  • Basic instructions to connect to a SVN-repo over SSH
  • The book Version Control with Subversion

Solution 2:

Why still using svn :-) Try git

Through ssh:

svn co svn+ssh://user@path/to/svn/repo/
or
git svn clone svn+ssh://user@path/to/svn/repo/

Through https:

svn co https://user@path/to/svn/repo/
or
git svn clone https://user@path/to/svn/repo/

When first username is not working, press enter. Then you can enter the correct username.