Translate

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.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

11 Responses to “svn: Can’t create tunnel: The system cannot find the file specified.”

  1. J. Knight Says:

    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. W. Young Says:

    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. lester Says:

    Thanks! the solution for eclipse really helped. Its working fine now

  4. n8w Says:

    your “how to” is bein deeply appreciated;) thx

  5. Pushparaj Says:

    Thanks a lot Ben. It really helped when I was helpless.
    It is working fine for me now.

  6. Sendy Says:

    Thanks a lot! It was very helpful

  7. Chris Says:

    Awesome! Pulling my hair out, but works beautifully now.

  8. gopi Says:

    Thanks very much. Spent nearly half a day getting this work. Your instructions was simple and solved my issue.

  9. Configurando SVN no Eclipse e Windows XP « Flávio Araújo Says:

    [...] Referência: http://www.gubatron.com/blog/2007/03/15/svn-cant-create-tunnel-the-system-cannot-find-the-file-speci... [...]

  10. mohan Says:

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

  11. Steadweb Says:

    Help me out with this error, thanks dude!

    Kudos +1

Leave a Reply