Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
  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
add comment

2 Answers 2

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

[tunnels]

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
add comment

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

share|improve this answer
add comment

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.