Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  1. First, export the SVN_SSH env variable:

    $ export SVN_SSH="ssh -l user -i /home/user/.ssh/id_rsa"
  2. Second, execute the command below and co is successful:

    svn co svn+ssh://user@host/home/svn/myrepo

Now the question:

Is it possible to execute the svn co svn+ssh:// in a single command? I want to execute the same command in a Windows PC environment.

share|improve this question

It is better to store the command ssh -l user -i /home/user/.ssh/id_rsa in the file ~/.subversion/config in [tunnels] section:


ssh = ssh -l user -i /home/user/.ssh/id_rsa

and then do svn co in single command. Works both Linux and Windows. The config you could find in the directory C:\Users\user\Application Data\Subversion.

share|improve this answer

Read Tunneling over SSH topic in the SVN book in order to exclude export operation, options for [tunnels] section

share|improve this answer

Your Answer


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.