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

Re: Problem connecting to svnserve - not sure about protocols?

From: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2006-12-18 20:44:43 CET

On Tuesday 21 November 2006 20:44, Jon Koerber wrote:

> 1) Try using svn checkout svn://192.168.1.101/Library/WebServer/
> Documents/pjb2  /projects
> This runs for two minutes or more before reporting back with svn:  
> Can't connect to host '192.168.1.101': Operation timed out

Hmm... strange. Can you telnet to 192.168.1.101 port 3690 (the default
svnserve port)? Are you sure svnserve (or inetd, or xinetd) are listening on
port 3690? Try:

laptop> telnet 192.168.1.101 3690

Ans see if it timeouts as well...

Also, firewall can be blocking the port...

> 2) Try using svn checkout svn+ssh://192.168.1.101/Library/WebServer/
> Documents/pjb2  /projects
> It immediately prompts me for my password: Password:********
> I then get the error message
> bash: line 1: svnserve: command not found
> svn: Connection closed unexpectedly

This shows that svnserve is not in your sshd default path. The server 'sshd'
has path hard-coded into it (typically something
like /usr/bin:/bin:/usr/sbin:/sbin, but ), and your initial shell gets just
these paths (for security reasons, I believe).

Your svnserve is not in one of these directories, so it is not found when svn
client tries to start it for repository access.

The remedy would be to symlink svnserve into one of these directories. You can
also change default paths during ssh compilation. I do not know if you can
change those in the sshd configuration files...

> I can, however, SSH into the machine just fine using ssh -l jkoerber  
> 192.168.1.101,

This is necessary but not sufficient.

> although I am not sure how I am supposed to pass my  
> userid (admin user on server) in the svn+ssh command?  I even tried:
> svn --username jkoerber checkout svn+ssh://192.168.1.101/Library/
> WebServer/Documents/pjb2  /projects
> but got the same errors.

I guess the right way to pass your name to ssh when you are using svn+ssh
method would be to use tunnels (have a look in the Subversion book); in
short:

a) uncomment

[tunnels]

section in you ~/.subversion/config file

b) add line

sshjkoerber = ssh -l jkoerber

to the ~/.subversion/config file to create new tunnel named 'sshjkoerber'

c) access the repository:

svn co svn+sshjkoerber://192.168.1.101/Library/WebServer/Documents/pjb2

to access your repository vie the new ssh tunnel.

Hope this helps,

-- 
Dr. Saulius Gražulis
Asociacija "Atviras Kodas Lietuvai"
Non-profit association "Open Source for Lithuania"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)
web:          http://www.akl.lt/
tel/fax:      (+370-5)-210-4005
mobile:       (+370-684)-49802, (+370-614)-36366
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 18 20:36:42 2006

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.