Forum Moderators: bakedjake

Message Too Old, No Replies

CVS via SSH?

CVS locally works, SSH works, but not together?

         

bluedalmatian

5:21 pm on May 4, 2005 (gmt 0)

10+ Year Member



Any idea why I cant access a repository to checkout a project remotely, but I can on the local machine.

I'm trying to do it with CVS on Mac OS X which is installed by default, along with OpenSSH. I'm also trying it with TortoiseCVS on Windows, which I beleive includes i'ts own SSH client (a port of PuTTY).

The server is running the latest version of CVS on Linux. I can SSH into the server and get a shell, and do anything, including checking out the project into my home dir on the server, but trying to do it from another machine (OS X) gives the following error:

Operation timed out
cvs [checkout aborted]: end of file from server (consult above messages if any)

The command I'm using is:

cvs -d :ext:user@server.org:/cvsroot checkout test2

On Windows, I get a different error:


Cannot open CVS/Entries for reading. No such file or directory

Thanks

MattyMoose

3:36 pm on May 10, 2005 (gmt 0)

10+ Year Member



What is your environment variable "CVS_RSH" set to?

Here's what I use (in Solaris, should be similar in most *NIXes):


CVSUMASK="002"
CVS_RSH="/usr/local/bin/ssh"

That tells CVS to use SSH rather than RSH (still the default today, I think).

And I actually made an alias for cvs, which you can use after everything is working (it saves some typing):

alias cvs='/usr/local/bin/cvs -d :ext:cvs@cvs.myserver.blah:/usr/local/cvsroot'

That remaps the "cvs" command to the full-on command.