views:

139

answers:

1

I have been asked to setup visualsvn for visual studio 2008

Due to firewall restrictions and server configuration. I need to use ssh tunneling.

My problem is this.

The local machine needs to connect to a gateway machine via ssh then connect to the subversion server so

Local machine ---{ssh}--- gateway ---{ssh}-- subversion server

I am not exactly sure of the correct process to do this.

It appears that I must start a ssh process using plink to open a local port and forward that to the remote subversion server.

eg: plink user@gateway -L 22:192.168.1.1:22

Then when visualsvn starts it uses tortoiseplink to make the actual connection through to the subversion server using svn+ssh://username@localhost:22/myrepo

This seems very very clunky.

Firstly it needs several steps to setup the connection.
Secondly I need plink running which leaves a command prompt on the desktop (clutter = yuck).
Lastly I need to use two different programs that do the same thing. (plink + tortoiseplink)

The problem is that tortoiseplink doesn't run in the background. As soon as I connect to the ssh gateway and enter the password it closes again. So I can't use it to create the initial connection.

If I use plink instead of tortoiseplink in visualsvn then I never get prompted for the password. so it just hangs with an open command prompt and no password request.

Is there a way to setup visualsvn so that everything happens in one command line?

I have searched high and low for a suitable and clean method to tunnel from visualsvn to the remote server and have found very little. it all either assumes one hop (not two like mine) or it glosses over all the hard bits.

DC

I also would like to add. How does visualsvn deal with multiple repositories on different servers? it appears you need to use the same ssh commandline for every project which means only one repository. or at least only one host!

DC

A: 

Haven't used visualsvn, but the instructions for tortoiseSVN are very simple.
It will at least let you test the link and the repository even if you don't use tortoiseSVN.

Martin Beckett
I have read the tortoisesvn docs and have not got anywhere. They are simple and don't seem to cover this setup. or I am missing something.
DeveloperChris
In the end I used tortoise to do the job.
DeveloperChris