On Tuesday 20 November 2001 03:45 pm, marco antonio cabazal wrote:
> # last 2001-11-20 (15:00 -0800), Pong <[EMAIL PROTECTED]>
>   mentioned something about re: cvs+ssh ?
>
> | baka kailangan lang ng double quotes:
> |
> | export CVS_RSH="ssh -p whatever-port-you-want"
>
>   thanks pong, pero no dice din. hehehe. *:)

Marco,

It won't work the standard way.  You need to wrap it around a shell script.  
Do this....

Create an ssh wrapper containing this....

#!/bin/sh
ssh -p 2002 $*

Let's name it cvssshwrap.  Set the permissions.

Now you're CVS_RSH env var must be set to call this wrapper like so...

export CVS_RSH=/whatever/path/cvssshwrap

But do remember that this is a wrapper, thus asking for your passphrase 
everytime.  You might want to fire up ssh-agent to minimize work.

-- 
Deds Castillo
Infiniteinfo Philippines
Hiroshima '45, Chernobyl '86, Windows 95/98/2K
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to