You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stefan Schwarzer <st...@grid.unep.ch> on 2006/03/01 08:25:53 UTC

SVN+SSH - svnserve problem

Hi there,

somehow I really don't get it. I read all I could find about svn+ssh,  
but I don't get it working...

What I have is the following:

a) I am working on my local machine (Mac OS X), where the repository  
resides. Here I do changes to the code code and commit it (locally)  
to the svn repository.
b) Then, I would like to get the most recent changes onto my test  
server (Linux), to test it in the same environment as the production  
server.
c) So, from this test server I try to connect to my local machine as  
follows:

	/usr/bin/svn checkout svn+ssh://schwarzer@my.ip.address/Users/ 
schwarzer/Documents/subversion_cvs/geodataportal/trunk .
	Password:

d) But then I get the following error message:

	bash: line 1: svnserve: command not found
	svn: Connection closed unexpectedly

e) I started the svnserve on my local machine (and on the test server  
too, cause I wasn't sure which svnserve it is asking for) using
	
	svnserve -d

f) I tried to connect via SSH from the test server to my local  
machine and start svnserve and it works as well.

So, where is the problem?!?

Thank you very much for any hint or slap on my head!

Stef




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

Re: SVN+SSH - svnserve problem

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 1, 2006, at 09:25, Stefan Schwarzer wrote:

> c) So, from this test server I try to connect to my local machine  
> as follows:
>
> 	/usr/bin/svn checkout svn+ssh://schwarzer@my.ip.address/Users/ 
> schwarzer/Documents/subversion_cvs/geodataportal/trunk .
> 	Password:
>
> d) But then I get the following error message:
>
> 	bash: line 1: svnserve: command not found
> 	svn: Connection closed unexpectedly
>
> e) I started the svnserve on my local machine (and on the test  
> server too, cause I wasn't sure which svnserve it is asking for) using
> 	
> 	svnserve -d
>
> f) I tried to connect via SSH from the test server to my local  
> machine and start svnserve and it works as well.

Using svn+ssh, you do not need to start svnserve yourself, and if you  
do start it beforehand, that instance never gets used. Rather,  
svnserve gets started automatically whenever anyone connects. But the  
way it gets started is that svnserve needs to be in the path of the  
user who's connecting. There are several files that bash can read in  
and in which such a path could be defined, and I believe the  
configuration file used when you connect over svn+ssh is different  
from the one used when you connect normally over an ssh terminal,  
which might explain why you can start it when you log in via ssh but  
not when Subversion tries to connect. Search the mailing list  
archives; I'm sure this has come up before.



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