On Tue, Dec 14, 1999 at 05:49:20PM +0100, Nils Lohner elucidated:
> With :ext: somehow the $CVS_RSH variable seems to be ignored:
> 
> ~ > set CVS_RSH=ignored
> ~ > echo $CVS_RSH
> ignored

I was able to set CVS_RSH to ssh and it works fine.  It is there to tell 
it what you want to use as an alternative to plain rsh.

set CVS_RSH=ssh

> ~ > cvs -t -d :ext:lohner@localhost:/cvs co -c
> cvs checkout: notice: main loop with CVSROOT=:ext:lohner@localhost:/cvs
>  -> Starting server: ssh localhost -l lohner cvs server 
> Secure connection to localhost refused; reverting to insecure method.
> Using rsh.  WARNING: Connection will not be encrypted.
> cvs: Command not found
> cvs [checkout aborted]: end of file from server (consult above messages if 
> any)
> ~ > 
> 
> What I want to put there is a script that essentially does 'ssh -p 2222 
> gateway'  That's the best way I've thought of doing it so far.
> 
> Suggestions?
> 
> Thanks, Nils.
> 

You'll likely have to make a shell wrapper.  Call it ssh_command (or 
something):

---- snip snip ----
#!/bin/sh

ssh -p 2222 $@

---- snip snip ----


set CVS_RSH=ssh_command

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dale Harris  <[EMAIL PROTECTED]>   GPG key: 372FBD57    http://www.maybe.org/
                  Maybe is an Ambivalent Yet Beguiling Enigma

Reply via email to