You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2003/08/26 20:00:09 UTC

Re: svn+ssh problem

Cédric Chabanois <cc...@ifrance.com> writes:

> Using subversion 0.26.0 on Gentoo linux, I did :
> 
> $ svnserve -d -r /home/cedric/repositories/
> 
> $ svn list svn://192.168.1.3/myrepos/
> readme.txt
> 
> This is what is expected
> 
> Then i did :
> $ svn list svn+ssh://192.168.1.3/myrepos/
> cedric@192.168.1.3's password:
> svn: Couldn't find a repository
> svn: No repository found in 'svn+ssh://192.168.1.3/myrepos'
> 
> Did I miss something ?

Yes, please read the svn book, chapter 5, about svnserve.

svn+ssh:// has *nothing* to do with 'svnserve -d'.

It launches its own private svnserve process, and requires an absolute
path to the repository.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: svn+ssh problem

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Tue, Aug 26, 2003 at 03:00:09PM -0500, Ben Collins-Sussman wrote:
> Cédric Chabanois <cc...@ifrance.com> writes:
> 
> > Using subversion 0.26.0 on Gentoo linux, I did :
> > 
> > $ svnserve -d -r /home/cedric/repositories/
[snip]
> > $ svn list svn+ssh://192.168.1.3/myrepos/
> > cedric@192.168.1.3's password:
> > svn: Couldn't find a repository
> > svn: No repository found in 'svn+ssh://192.168.1.3/myrepos'
> > 
> > Did I miss something ?
> 
> Yes, please read the svn book, chapter 5, about svnserve.
> 
> svn+ssh:// has *nothing* to do with 'svnserve -d'.

This is correct.

> It launches its own private svnserve process, and requires an absolute
> path to the repository.

svn+ssh:// does NOT require a full path to the repository if it's set up
properly :)

See http://www.contactor.se/~dast/svnusers/archive-2003-08/0548.shtml

Actually, I'll quote from it here:

	On Wed, Aug 20, 2003 at 08:18:01AM -0500, Ben Collins-Sussman
	wrote:
	[...]
	> svn+ssh:// requires that you use an *absolute* path after the
	> hostname. Is that what you're doing?

	To get around this, you can use the "-r" switch to svnserve.
	Just bare in mind that in "tunnel" mode (i.e. when using the
	svnserve protocol over SSH etc.) svnserve must be run with the
	-t switch.  Otherwise everything will still be anonymous.  You
	can do this by using SSH keys and then putting something like
	this in the authorized_keys file:

	command="svnserve -t -r /home/svn" ssh-dss AAAAB3...

	(see the ssh docs for more details.)

	This is not necessary if you do not want to use the "-r" switch.
	[...]

-- 
Michael Wood <mw...@its.uct.ac.za>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org