3
  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.

4

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.

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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