Connecting via rsh -- CVS---Concurrent Versions System



Next: Password authenticated Up: Remote repositories Top: Top

4.5.1. Connecting with rsh

CVS uses the rsh protocol to perform these operations, so the remote user host needs to have a .rhosts file which grants access to the local user.

For example, suppose you are the user mozart on the local machine anklet.grunge.com, and the server machine is chainsaw.brickyard.com. On chainsaw, put the following line into the file .rhosts in bach's home directory:

anklet.grunge.com  mozart

Then test that rsh is working with

rsh -l bach chainsaw.brickyard.com echo $PATH

Next you have to make sure that rsh will be able to find the server. Make sure that the path which rsh printed in the above example includes the directory containing a program named cvs which is the server. You need to set the path in .bashrc, .cshrc, etc., not .login or .profile. Alternately, you can set the environment variable CVS_SERVER on the client machine to the filename of the server you want to use, for example /usr/local/bin/cvs-1.6.

There is no need to edit inetd.conf or start a cvs server daemon.

Continuing our example, supposing you want to access the module foo in the repository /usr/local/cvsroot/, on machine chainsaw.brickyard.com, you are ready to go:

cvs -d bach@chainsaw.brickyard.com:/user/local/cvsroot checkout foo

(The bach@ can be omitted if the username is the same on both the local and remote hosts.)



Next: Password authenticated Up: Remote repositories Top: Top