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

RE: svnserve + ssh on Mac OS X

From: Karan, Cem \(Civ, ARL/CISD\) <CKaran_at_arl.army.mil>
Date: 2005-08-24 20:03:54 CEST

You've got problems with bash. When you run a ssh tunnel, only certain bash files are read (because it isn't an interactive session), whereas when you run ssh normally, all of the bash configuration files are read. I can't remember off the top of my head if you want to put all the path stuff in .bashrc or in .profile, but it will probably be in one of those two. Read the man pages on bash for more information (the man pages on the MAC! thats the one your tunneling to, and therefore the one that you need to worry about...)

Good luck,
Cem Karan

-----Original Message-----
From: Bradley Wagner [mailto:bradley.wagner@gmail.com]
Sent: Wed 24-Aug-05 11:36 AM
To: Ben Collins-Sussman
Cc: Dave Camp; users@subversion.tigris.org
Subject: Re: svnserve + ssh on Mac OS X
 
> I think you're missing some fundamental concepts about how svn
> +ssh:// works. You should read this section of the book:
>
> http://svnbook.red-bean.com/nightly/en/
> svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshauth
>
> "The important thing to understand here is that the Subversion
> client is not connecting to a running svnserve daemon. This method
> of access doesn't require a daemon, nor does it notice one if
> present. It relies wholly on the ability of ssh to spawn a
> temporary svnserve process, which then terminates when the network
> connection is closed."
>
> The svn client is running 'ssh remotehost svnserve -t'. You don't
> need to do a thing on the server, other than have 'sshd' running
> and 'svnserve' installed.
>

To update, I read this stuff and here is where I stand. When I login
to my Mac from a linux machine via subversion from the command line
(svn list svn+ssh://host/path/to/repos), I got the following error
message:

svnserve: command not found
svn: Connection closed unexpectedly

I verified that svnserve was in the path of the user I was using to
login via ssh by ssh-ing into my Mac with that account and doing a
"which svnserve". Svnserve is installed by default in /usr/local/bin.
I got it to work by creating a symbolic link to svnserve in /usr/bin,
although I can't say I understand why that was necessary.

So, it's working from the command line now, but when I try the same
url in Subclipse, I got the following error:

Error validating location:
"org.tigris.subversion.javahl.ClientException: The system cannot find
the file specified. svn: Can't create tunnel: The system cannot find
the file specified."

Thoughts?
Bradley

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 24 20:05:35 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.