从linux redhat访问Windows主机上的svn存储库

时间:2014-11-12 14:55:50

标签: linux windows svn ssh remote-server

如何在打开的Windows服务器上访问svn存储库?我可以从另一个寡妇框访问,但现在需要从Linux框访问。

当我进入

ssh -v HOST

输出

OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to HOST port 22.
debug1: connect to address HOST port 22: Connection refused
ssh: connect to HOST port 22: Connection refused

当我进入

svn info svn+ssh:"//HOST/dir/svn_repository"

输出

svn: 'svn+ssh://HOST/dir/parent dir' is not a working copy
svn: 'svn+ssh://HOST/dir/parent dir' does not exist

我也试过

svn info svn+ssh:"//HOST/dir/svn_repository/project"

windows框使用tortoisesvn,路径类似于“file:// Host / dir / svn_repository / project”

我刚试过     svn list file:///...%20..%20.../repository/project,

和     svn list'file:/// ...... .. / repository / project'。

这些命令现在提供的错误无法打开到URL的ra_local会话。我已经问过sys管理员和技术支持,但他们不熟悉svn,ssh或Linux到Windows通信。

服务器是运行visualsvn的2008服务器。我可以使用带有路径'file:// server / path / repo / project'的tortoisesvn从windows 7机器访问repo。以下是我最近从fedora 6 box访问的尝试

<bash>$ svn info 'file://server/path/repo/project'
'file://server/path/repo/project':  (Not a valid URL)
svn: A problem occurred; see other errors for details

<bash>$ svn info 'file:///server/path/repo'
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///server/path/repo'

2 个答案:

答案 0 :(得分:1)

这里的问题是存储库是在共享驱动器上创建的。存储库不在svn服务器中。将存储库移动到服务器应该允许从linux机器访问。

关注问题:visualsvn error while loading existing repository

答案 1 :(得分:0)

  

ssh:连接到HOST端口22:拒绝连接

必须对您来说意味着“svn + ssh://将无法正常工作,因为svn over ssh repository-host必须至少启用ssh并且它没有”

即使启用了ssh-daemon,也无法自动为您svn+ssh://提供访问权限,因为存储库主机上的it require additional actions

file:/// - 类型的URL是TortoiseSVN 可以表示,该存储库主机可能有热的任何SVN服务器(远程Win-box只是使用Windows网络的功能来浏览并访问远程共享驱动器 - BAD IDEA(tm),用于LAN上的存储库,BTW)

PS: protocol://"PATH/TO"无论如何都是错误的网址格式。虽然它在情况下不会影响您,但它必须是protocol://PATH/TO

相关问题