[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: using svn+ssh on a windows svn server

From: Julien Pepy <komuta_at_gmail.com>
Date: 2005-04-11 18:28:39 CEST

when I said I spent the whole, I really mean it ^ ^. I searched already in
the mailist archive and so.
as for "svn+rsh" URL, it's a mistake in my mail, I copy paste without
noticing, but of course I used "svn+ssh"
svnserve is in the path of my win2000, I already tested a ssh client on my
mac to access it, and it worked.
ssh doesn't hang, in authentify with password, and if I test client on the
same win2000 but through the ssh,
I use directly putty's plink, and it works. well, at least until the "can't
find repository" error.
my problem is this error, and the repository url page of the manual doesn't
answer. it says only to use this:

file:///X:/path/to/repos

but it's only for the "file:" type of url. if I try

svn://host/X:/path/to/repos

or

svn+ssh://host/X:/path/to/repos

it fails, either reporting it can't find the repository or understand the
url.
so my question is: I understand svn was meant to be used on linux/unix
platforms
primilarly, where a full path is compatible with the URL scheme, but how are
we
suppose to put an absolute windows path in case of a windows server ?

by the way, I also tried another trick. since svnserve -d worked with the -r
flag
(which solve the probleme of absolute path on windows), I tried to find a
solution
to the automatic "svnserve -t" called when using the svn+ssh URL.
so on my windows ssh server, I used mingw's sh shell instead of win2000's
cmd.exe,
and created and alias svnserve='svnserve -r c:/repos'. and I checked by a
client
ssh connection that "svnserve -d" effectively used the alias version. it
worked.
but even with this, using directly the client in svn+ssh mode with the same
url as
the one which was working for the svn mode (so with -r option), the svn+ssh
client
request fails, can't find repository, which means -to me- that the -r option
isn't
available with the tunnel mode of the server.

I used a lot of time trying to make this work, because I need subversion for
my project,
and I don't have a linux box, just a windows 2000 that can act as a server.
again,
I would really appreciate if someone could help me on this.

On Apr 11, 2005 4:14 PM, Andrew Thompson <subversionuser@aktzero.com> wrote:
>
> An error message of some kind would be most helpful...
>
> You may have one of a couple of problems:
>
> For your URL, look at:
> http://svnbook.red-bean.com/en/1.1/ch02s03.html#svn-ch-2-sidebar-1
>
> You also need to determine if svnserve is in your path when using the
> ssh connection.
>
> My first question is, why are you using svn+rsh? Shouldn't that be
> svn+ssh? Is there some special issue with Windows that I'm just not
> aware of?
>
> You need to confirm that your remote/secure shell actually connects to
> your Windows 2000 box. Try invoking it directly: ssh username@host
>
> I have also noticed that svn hangs if ssh isn't completely set up for
> connecting to a host. If you've never connected to a host before, you
> have to accept the host's key. In that instance, svn just hangs.
> Therefore:
>
> You must connect successfully with ssh outside of svn before you can use
> svn+ssh.
>
> --
> Andrew Thompson
> http://aktzero.com/
> Interested in a hosted SVN repository? Email me, let's talk...
>
Received on Mon Apr 11 18:51:48 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.