in Code, Geeklife

svn: Can’t create tunnel: The system cannot find the file specified.

I was trying to checkout a project from a subversion repository using Eclipse’s Subversive, and I was having problems with a subversion url that starts with “svn+ssh://”

This means all the transport has to be done using a “ssh” agent.

Eclipse’s Subclipse plugin was giving me the error:
svn: Can’t create tunnel: The system cannot find the file specified.

To solve the problem I recommend that you…

Use a pure Java SSH Agent

In Eclipse > Window > Preferences > Team > SSH > SVN Interface > SVNKit (Pure Java)

However it seems its possible to…

Use Tortoise as your SSH agent

Go to your Windows Environment Variables settings (Computer -> Advanced Settings -> Environment Variables) and add or set the variable SVN_SSH = c:\Program Files\TortoiseSVN\bin\TortoisePlink.exe

(the double slashes are very important!)

Then make sure eclipse is using the native (Tortoise Plink’s) ssh agent:

This is set here:
In Eclipse > Window > Preferences > Team > SSH > SVN Interface > JavaHL (JNI)

Once Set and applied, Restart Eclipse, and checkout your project.

Only problem is (at least I found), that when you try to check out, TortoisePlink will prompt its password window, and there’s no way (that I know for now) to specify the user name. I tried putting in the username on the svn+ssh://user@server but when I tried, Eclipse told me that the path already existed. You probably need to delete the repo and create it again in eclipse. But since it already works with a Pure Java SSH agent… fuck it.

Write a Comment

Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

12 Comments

  1. To get TortoiseLink *not* to prompt you for a password, create a public/private key. Then in your SVN_SSH value, use the -i argument to specify the path to the private key file, like so:

    ..\bin\TorotisePlink.exe -i C:\id_rsa_svn.ppk

  2. Thanks,

    I got this error message: The system cannot find the file specified. svn: Can’t create tunnel: The system cannot find the file specified.

    And you solved my problem 🙂

  3. When I go into my

    window> preferences> Team> there is no SSH there,,

    is there any other way to change it, probably some configuration file….