Subject: Re: cvs and ssh
To: David Forbes <firstname.lastname@example.org>
From: David Maxwell <email@example.com>
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'
> 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
Right - I didn't test it. Here's the fix -
Create a program as follows:
ssh -p 2200 $*
(Remember to chmod +x it) Now you can set its name as your CVS_RSH
David Maxwell, firstname.lastname@example.orgemail@example.com -->
If you don't spend energy getting what you want,
You'll have to spend it dealing with what you get.