
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
116
|
Chapter 6: Server Configuration
You’d think that the story of SSH tunneling would end here, but it doesn’t. Subver-
sion allows you to create custom tunnel behaviors in your run-time config file (see
“Runtime Configuration Area.”) For example, suppose you want to use RSH instead
of SSH. In the
[tunnels] section of your config file, simply define it like this:
[tunnels]
rsh = rsh
And now, you can use this new tunnel definition by using a URL schema that
matches the name of your new variable:
svn+rsh://host/path. When using the new
URL schema, the Subversion client will actually be running the command
rsh host
svnserve -t
behind the scenes. If you include a username in the URL (for example,
svn+rsh://username@host/path) the client will also include that in its command (rsh
username@host svnserve -t
.) But you can define new tunneling schemes to be much
more clever than that:
[tunnels]
joessh = $JOESSH /opt/alternate/ssh -p 29934
This example demonstrates a couple of things. First, it shows how to make the Sub-
version client launch a very specific tunneling binary (the one located at /opt/
alternate/ssh) with specific options. In this case, accessing a
svn+joessh:// URL
would invoke the particular SSH binary with
-p 29934 as arguments—useful if you
want the tunnel program to connect to a non-standard ...