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.

2 Answers 2

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.

1
  • The location on Windows is %APPDATA%\Subversion\config, which is only sometimes equivalent to C:\Users\user\Application Data\Subversion\config
    – cowlinator
    Jul 13, 2020 at 23:45
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .