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

Re: Accessing repository with svn vs. svn+ssh

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-07-17 23:29:47 CEST

On Jul 17, 2007, at 12:34, Rick Haller wrote:

> I created a repository in /svnrepos. The repository was populated
> with projects using cvs2svn. The filesystem is berkely-db. We
> won't be using Apache, just svnserve.
> I am able to checkout projects using svn: and svn+ssh: and commit
> changes. However, there appears to be a discrepency between
> the two protocols.
> To use svn: the command looks like svn checkout svn://myserver/
> trunk/proj1
> To use svn+ssh: the cmd looks like svn checkout svn+ssh://
> myserver/svnrepos/trunk/proj1
>
> If I don't use the commands as shown above, I receive the following
> errors.
> svn: URL 'svn://myserver/svnrepos/trunk/proj1' doesn't exist
> svn: URL 'svn+ssh://myserver/trunk/proj1' doesn't exist
>
> Can someone explain the difference and why ? Is there a way to
> use the svn: protocol so that it includes "svnrepos" in the url ?

You have presumably started your svnserve (the one that's used for
the svn:// protocol) using "svnserve -r /svnrepos". I think if you
want to specify "svnrepos" as part of the URL, then you would use "-
r /" or just omit the "-r" option.

It's probably a better idea, though, to restrict these URLs to just a
directory in which you host your repositories. If you allow any
directory on the server to be accessed, that might make it harder to
keep any private repositories hidden.

So I recommend you start svnserve with some -r option, and also
configure your svn+ssh:// to restrict users to the same root. See:

http://svnbook.red-bean.com/en/1.2/
svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshauth

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 17 23:29:27 2007

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.