简体   繁体   English

如何将AnkhSVN与SSH隧道一起使用?

[英]How to use AnkhSVN with an SSH tunnel?

For university, I need to tunnel my SVN traffic through SSH because the server is normally not reachable from the outside. 对于大学,我需要通过SSH隧道传输SVN流量,因为通常无法从外部访问服务器。 I have to work with Microsoft Visual Studio 2010 and installed AnkhSVN as my VCS. 我必须使用Microsoft Visual Studio 2010,并将AnkhSVN安装为我的VCS。

I now have the problem that I cannot create a tunnel to the subversion repo. 我现在遇到的问题是我无法创建到Subversion存储库的隧道。 I have done it before with Eclipse with the following settings: I opened putty, connected to myproxy.myuniversity:22. 之前,我已经使用Eclipse进行了以下设置:打开腻子,连接到myproxy.myuniversity:22。 I also created a tunnel with putty under connection -> SSH -> tunnels which forwards the traffic from my local port 5050 to the remote port 22. In Eclipse, I edited the settings for the SOCKS proxy and set it to 127.0.0.1:5050. 我还在连接-> SSH->隧道下创建了一个带有腻子的隧道,该隧道将流量从本地端口5050转发到远程端口22。在Eclipse中,我编辑了SOCKS代理的设置并将其设置为127.0.0.1:5050 。 The fields for http/https proxy were left blank. http / https代理的字段保留为空。 That worked fine. 很好。

But unfortunately, Visual Studio provides no way to edit the proxy settings. 但是不幸的是,Visual Studio无法提供编辑代理设置的方法。 In AnkhSVN I can only edit the http/https proxy settings but I cannot change the SOCKS settings which is needed. 在AnkhSVN中,我只能编辑http / https代理设置,但不能更改所需的SOCKS设置。 To change Windows SOCKS proxy does not help either. 更改Windows SOCKS代理也无济于事。

Is there any way to tunnel my SVN traffic through SSH or is there any other Visual Studio plugin which supports this kind of proxy? 是否可以通过SSH隧道传送我的SVN流量,或者是否有其他任何支持这种代理的Visual Studio插件? I highly want to avoid to use TortoiseSVN since it has screwed up my laptop ago. 我非常想避免使用TortoiseSVN,因为它以前弄坏了我的笔记本电脑。

Explanation taken from AnkhSVN wiki: 来自AnkhSVN Wiki的说明:

Source: https://ankhsvn.open.collab.net/wiki/Faq10#head-5e43a060909fcd04d63e3aeed73012de285b9d90 资料来源: https : //ankhsvn.open.collab.net/wiki/Faq10#head-5e43a060909fcd04d63e3aeed73012de285b9d90

You may not have an ssh client available. 您可能没有可用的ssh客户端。 You can specify the full path to the client in the c:\\Documents and Settings\\YOURUSERNAME\\Application Data\\Subversion\\config. 您可以在c:\\ Documents and Settings \\ YOURUSERNAME \\ Application Data \\ Subversion \\ config中指定客户端的完整路径。 Make sure you uncomment the # tunnels section and add a line like this: 确保取消注释#隧道部分,并添加如下行:

ssh = c:\\Program\\ Files\\TortoiseSVN\\bin\\?TortoisePlink.exe ssh = c:\\ Program \\ Files \\ TortoiseSVN \\ bin \\?TortoisePlink.exe

(note the double \\ characters and the single \\ to escape the space ) (请注意,双\\字符和单\\会转义空格)

Update: You'll probably need to use an external application like putty or plink. 更新:您可能需要使用外部应用程序,例如腻子或plink。 this link can help you doing it: http://bitworking.org/news/Getting_subversion_svn_ssh____to_work_with_PuTTY keep in mind AnkhSVN is using the same configuration as the svn.exe command line client. 该链接可以帮助您做到这一点: http ://bitworking.org/news/Getting_subversion_svn_ssh____to_work_with_PuTTY请记住,AnkhSVN使用的是与svn.exe命令行客户端相同的配置。

Hope this is what you've looking for.. 希望这是您想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM