[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using CVS through an SSH tunnel.

From: Nathan Field
Subject: Using CVS through an SSH tunnel.
Date: Mon, 27 Nov 2000 19:24:02 -0800 (PST)

I'm trying to get CVS to work through a tunnel into my companies work. I
have set up an ssh tunnel from my own machine with this command:

ssh -L 20000:server:22 firewall

This sets up port 20000 on my local machine as a tunnel to port 22 on the
server machine. No problem there. Now I try to setup CVS to use this
tunnel to do a CVS checkout.

Ack, but wait, how do I tell ssh to use port 20000? Perhaps if I set
CVS_RSH differently:

$ export CVS_RSH="ssh -p 20000"
$ cvs co bin/scripts
cvs [checkout aborted]: cannot exec ssh -p 20000: No such file or
cvs [checkout aborted]: end of file from server (consult above messages if

I can get this to work if I kill my local ssh daemon, and issue the
tunneling command as root with the local port set to 22, but this is not a
practical solution. I looked through the info pages and found a couple of
promising environment variables, but setting either of these to 20000
didn't help.
        CVS_CLIENT_PORT: for Kerberos authentication
        CVS_RCMD_PORT: Currently not used for Unix clients

Does anyone know how to make this work? It seems like there needs to be a
CVS_RSH_OPTIONS environment variable or something like that.

        Thanks for any help,


Nathan Field  Root is not something to be shared with strangers.

When he awoke, he asked: "Was I before Chang Tzu who dreamt about being a
butterfly, or am I now a butterfly who dreams about being Chuang Tzu?"
        -- Chuang Tzu

reply via email to

[Prev in Thread] Current Thread [Next in Thread]