svn+ssh on alternate ssh port
Mike Garfias
mike at garfias.org
Thu Mar 9 12:03:37 MST 2006
try ssh -p222 user at host /usr/bin/svnserve
see if that works
Craig White spoke forth with the blessed manuscript:
> On Thu, 2006-03-09 at 11:07 -0700, Craig White wrote:
> > On Thu, 2006-03-09 at 10:44 -0700, Mike Garfias wrote:
> > > >From the svnbook:
> > >
> > > You'd think that the story of SSH tunneling would end here, but it
> > > doesn't. Subversion allows you to create custom tunnel behaviors in your
> > > run-time config file (see the section called 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 at 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
> > > Subversion 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
> > > argumentsuseful if you want the tunnel program to connect to a non-standard
> > > port.
> > ----
> > OK - I saw that before I posted here and put the following in
> > ~/.subversion/config
> >
> > rsh = rsh
> > craigssh = /usr/bin/ssh -p 222
> >
> > and then running...
> >
> > $ svn checkout svn+ssh://remote.host.com/home/craig/my-db_svn my-db_svn
> >
> > takes a long time and then tells me...
> >
> > ssh: connect to host remote.host.com port 22: Connection timed out
> > svn: Connection closed unexpectedly
> >
> > and this...
> >
> > $ svn checkout craigssh://remote.host.com/home/craig/my-db_svn my-db_svn
> > svn: Unrecognized URL scheme for
> > 'craigssh://remote.host.com/home/craig/my-db_svn'
> >
> > so I clearly don't understand what is going on...(the port and
> > remote.host.com have been changed to protect the innocent)
> >
> > there is no 'verbose' sort of option that I can find that helps me
> > troubleshoot and there's a disconnect between the documentation and my
> > brain that is making the usage less than obvious to me.
> ----
> OK - I got a lot further now and I'm still working on it...
>
> dummy me needed to do svn checkout ssh+craigssh://...
>
> after I connect though, I get an error...
>
> sh: line 1: svnserve: command not found
> svn: Connection closed unexpectedly
>
> which is odd since 'which svnserve' returns '/usr/bin/svnserve'
>
> but I am making progress now
>
> Craig
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
> !DSPAM:11,441075e6222321963812226!
>
>
More information about the PLUG-discuss
mailing list