开发者

ssh tunneling with visualsvn

开发者 https://www.devze.com 2022-12-27 04:15 出处:网络
I have been asked to setup VisualSVN for Visual Studio 2008. Due to firewall restrictions and server configuration. I need to use ssh tunneling.

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.

E.g.: 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://user开发者_开发技巧name@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.

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消