本文介绍了如何在Eclipse中使用ssh隧道设置subversion?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个远程服务器托管我的非标准ssh端口的subversion版本库。我想使用Eclipse的子插件作为我的客户端访问SVN信息库。我可以使用svn + specialssh访问存储库:// ...其中specialssh是我的〜/ .subversion / config中的隧道配置文件设置。



在subclipse我尝试输入存储库的URL:svn + specialssh://但是不行。

解决方案

我设置了我的隧道到我的存储库,该存储库位于家庭网络的防火墙后面:

  ssh -L 9000:10.5 .128.5:3690 root @< mypublexexposed地址> 

10.5.128.5是我的存储库主机的内部地址。端口3690是svn侦听的地方。



然后在Eclipse中配置存储库:

 code> svn:// localhost:9000 / gwt 

这不是唯一的办法。我也使用一种方法,Eclipse必须知道它是ssh,插件必须支持它,而这种方法只是我个人的喜好。



第二个想法,你不需要任何复杂的东西。尝试:

  svn + ssh:// host:port / directory 
pre>

I have a remote server that hosts my subversion repository on a non-standard ssh port. I want to use Eclipse's subclipse plugin as my client end to access the SVN repository. I can access the repository fine by using svn+specialssh://... where specialssh is a tunnel profile setup in my ~/.subversion/config.

In subclipse I tried to input the URL of the repository as: svn+specialssh:// but that doesn't work.

解决方案

First, I set up my tunnel to my repository, which lives behind the firewall on my home network:

ssh -L 9000:10.5.128.5:3690 root@<mypublicallyexposedaddress>

10.5.128.5 is the internal address of my repository host. Port 3690 is where svn listens.

Then in Eclipse, I configure the repository:

svn://localhost:9000/gwt

And there you go. This is not the only way to do it. I've also use an approach where Eclipse has to know it's ssh, and the plugin has to support it, which they do, but this approach is just my personal preference.

On second thought, you don't need anything that complicated. Try:

svn+ssh://host:port/directory

这篇关于如何在Eclipse中使用ssh隧道设置subversion?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 17:32