如何在 Eclipse 中使用 ssh 隧道设置 Subversion?
我有一个远程服务器,在非标准 ssh 端口上托管我的 subversion 存储库。 我想使用 Eclipse 的 subclipse 插件作为客户端来访问 SVN 存储库。 我可以使用 svn+specialssh://... 来访问存储库,其中specialssh 是我的 ~/.subversion/config 中的隧道配置文件设置。
在 subclipse 中,我尝试将存储库的 URL 输入为: svn+specialssh:// 但这不起作用。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
首先,我设置了通往存储库的隧道,该存储库位于我的家庭网络的防火墙后面:
10.5.128.5 是我的存储库主机的内部地址。 3690端口是svn监听的端口。
然后在 Eclipse 中,我配置存储库:
就这样。 这不是唯一的方法。 我还使用了一种方法,其中 Eclipse 必须知道它是 ssh,并且插件必须支持它,他们确实这样做了,但这种方法只是我个人的偏好。
再想一想,你不需要那么复杂的东西。 尝试:
First, I set up my tunnel to my repository, which lives behind the firewall on my home network:
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:
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:
将 ssh 连接配置添加到 ~/.ssh/config 文件中:
如果您随后在任何 ssh/svn+ssh 配置中指定“svnserver”作为主机名,则 ssh 应该能够通过简单地读取配置文件来解析所有内容。
Add the ssh connection configuration to your ~/.ssh/config file:
If you then specify "svnserver" as the hostname in any ssh/svn+ssh configuration, ssh should be able to resolve everything by simply reading your config file.
我曾经做过的事情是让 shell 脚本包装我对 SSH 的访问,例如:
通过设置 SVN_SSH 环境,我会告诉我的 Eclipse svn 插件使用该脚本而不是“ssh”多变的:
Something I used to do is have a shell script wrap my access to SSH, something like:
And I'd tell my Eclipse svn plugin to use that script instead of "ssh", by setting the
SVN_SSH
environment variable:svn+ssh://主机:端口/目录
-> 4 我喜欢在 Eclipse 的 debian 服务器上使用魅力(flash builder 4.5),感谢 Don Branson
我设置颠覆的方式:
http://dwaver.files.wordpress.com/2011/08/subversion-notez-v1-0.pdf
svn+ssh://host:port/directory
-> works 4 me like charm on debian server out of eclipse (flash builder 4.5) thanks Don Branson
my way of setting up subversion:
http://dwaver.files.wordpress.com/2011/08/subversion-notez-v1-0.pdf