Subject: Re: cvs and ssh
To: David Forbes <david@flossy.u-net.com>
From: David Maxwell <david@vex.net>
List: netbsd-users
Date: 08/06/2001 00:33:06
On Sun, Aug 05, 2001 at 04:07:24PM +0100, David Forbes wrote:
> > > Is it possible to set CVS_RSH to some devious value, so that it uses the
> > > basic ssh connection backwards?
> >
> > Not quite. You can however open an ssh forwarded port and ssh back down
> > that.
> >
> > A%> ssh -R 2200:localhost:22 user@C
> > ...
> > C%> setenv CVS_RSH 'ssh -p 2200'
>
> Sadly:
>
> shonky:david$ export CVS_RSH='ssh -p 2200'
> shonky:david$ export CVSROOT=localhost:/usr/cvsroot
> shonky:david$ cd cvstest
> shonky:cvstest$ cvs co WinAG
> cvs [checkout aborted]: cannot exec ssh -p 2200: No such file or directory
> cvs [checkout aborted]: end of file from server (consult above messages if
> any)
> shonky:cvstest$
Right - I didn't test it. Here's the fix -
Create a program as follows:
#!/bin/sh
ssh -p 2200 $*
(Remember to chmod +x it) Now you can set its name as your CVS_RSH
variable.
--
David Maxwell, david@vex.net|david@maxwell.net -->
If you don't spend energy getting what you want,
You'll have to spend it dealing with what you get.
- Unknown