On 9/26/06, Brian McCullough <[EMAIL PROTECTED]> wrote:
On Tue, Sep 26, 2006 at 04:11:23PM -0400, Rick DeNatale wrote:
>
> There's a tunnel mode of running svnserve, but the documentation is
> confusing,  It says that it will work with an ssh tunnel that is
> "already set up", but I can't for the life of me figure out what that
> means in terms of what needs to be done on the svn client side.


Not actually having done this, you must take this with the proverbial
grain of salt.

However, I would think that you would do this with the "port forwarding"
configuration of SSH.  Attach ( in your configuration file on the svn
side ) a particular incoming SSH port to your SVN server.  Then on the
client, set the svn client up to talk to a local port, which is then
captured by the local ssh software and forwarded to the server on the
"private" port.

Does that make any sense?

Actually, I dug around a bit more, and I think that the -t option on
svnserve is used internally by the svn client when you use an svn+ssh
uri.

If you execute the client command:

  svn co svh+ssh://svn.mydomain.com/usr/local/svn/repository/project

under the covers the svn command executes:
  ssh svnserve -t
in order to create a personal svnserver 'daemon' to talk to.

It's similar to the way rsync over ssh works, rsync uses undocumented
options -server and -sender to set the direction of transfer, the
difference is that there's a light seasoning of documentation on
svnserve's -t option.

I guess I could do some ssh server configuration to make the
repository look like it was rooted somewhere else, but that might be
too much trouble for my personal needs, but in general I guess it
would be good to figure out how to make svnserve run in a chroot jail.


--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

IPMS/USA Region 12 Coordinator
http://ipmsr12.denhaven2.com/

Visit the Project Mercury Wiki Site
http://www.mercuryspacecraft.com/
--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/

Reply via email to