References and Resources201
Next, you need to log into the CVS server and append the newly created
.pub
files to a
file called
authorized_keys
. The
authorized_keys
holds the authentication keys for
each user/machine combination that is permitted to use RSA Authentication to log in.
# ssh –l username cvsserver
# cd .ssh
# cat client.pub >> authorized_keys
While
username
and
cvsserver
are the same as before,
client.pub
should be
replaced with the name of the machine that you generated the keys on.
At this point ssh should be set up and you should be able to move ssh into the CVS repos-
itory without having to enter a password or passphrase.
The next step is to set up CVS to use this new method of connecting to the repository. This
is accomplished by set two environment variables. The first you should already be familiar with;
that is
CVSROOT
.
When using ssh instead of accessing the server locally or via
pserver
, the command to
set up the
CVSROOT
variable should look something like this:
# export CVSROOT=:ext:user@hostname:/usr/local/cvsroot
The second environment variable that needs to be set up is
CVS_RSH
. This is used with
the
:ext:
method to specify which command should be used to log into the remote server. This
should be set to
ssh
. You may need to specify the full path to the ssh application if
ssh
is not in
your
$PATH
.
# export CVS_RSH=ssh
At this point you should be able to use CVS via ssh.
You should be aware that each project, when it is checked out, keeps track of the method
that it used to check out that project. This is kept in the CVS directory of the project in a file
called
Root
. If you have any projects checked out when switching access methods, you will
want to check the projects back in and release them before switching; or manually edit the files
for each project to inform CVS of the change in access.
Supplying the –
d
option on the command line to change the access method would also
work.
6.8References and Resources
1.
The CVS home page at http://www.cvshome.org
2.
Complete CVS documentation at http://www.cvshome.org/docs/manual/
3.
The jCVS home page at http://www.jcvs.org
4.
The OpenSSH home at http://www.openssh.org