Access svn repository on windows host from linux r

2019-09-21 05:50发布

问题:

How to access a svn repository on an open windows server? I have access from a different widows box, but now need to access from Linux box.

When I enter

ssh -v HOST

The output is

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

When I enter

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

The output is

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

I also tried

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

The windows box uses tortoisesvn and the path is something like "file://Host/dir/svn_repository/project"

I just tried svn list file:///...%20..%20.../repository/project,

and svn list 'file:///... .. .../repository/project'.

Those commands give the error now is unable to open an ra_local session to URL. I have asked sys admin and tech support, but they are not familiar with svn, ssh, or Linux to windows communications.

The server is a 2008 server running visualsvn. I'm able to access the repo from a windows 7 machine using tortoisesvn with path 'file://server/path/repo/project'. Here are my most recent attempts to access from 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'

回答1:

The problem here is that the repository was created on a shared drive. The repository is not in an svn server. Moving the repository into a server should allow access from linux machine.

Follow on question: visualsvn error while loading existing repository



回答2:

ssh: connect to HOST port 22: Connection refused

must means for you "svn+ssh:// will not work, because for svn over ssh repository-host must have at least ssh enabled and it hasn't it"

Even enabled ssh-daemon doesn't provide for you svn+ssh:// access automagically, because it require additional actions on repository-host

file:///-type URL is TortoiseSVN can indicate, that repository-host may hot have any SVN-server at all (remote Win-box just uses the abilities of Windows Network to browse and reach remote shared drives - BAD IDEA (tm) for repositories over LAN, BTW)

PS: protocol://"PATH/TO" is wrong format of URL anyway. While it doesn't affect you in this case, it must be protocol://PATH/TO