In message <[EMAIL PROTECTED]>, Dale Harris writes:
>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
>
Well, that's exactly what I'm trying to do but according to the cvs -t
output, the script I tell it to use is ignored:
~ > 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
It just sticks to plain SSH for some reason- the above example was jsut to
show that it ignored the var and used just 'ssh' instead. Maybe the cvs -t
ourput is wrong? But I don't think so: I don'e see it connecting ot the
tunnel when I do pass it a proper script. I have no ~/.cvsrc file, and no
other place I can think of would override it.
~ > uname -a
SunOS bernin 5.7 Generic_106541-02 sun4m sparc SUNW,SPARCstation-5
~ > gcc --version
2.95.1
~ > cvs --version
Concurrent Versions System (CVS) 1.10.7 (client/server)
Nils.