How to set up CVS acces to a repository over SSH using a public/private key pair.
SSH access
First, establish the ssh connection by making the public/private key pair and transferring it to the correct location:
$ ssh-keygen -t dsa
$ scp .ssh/id_dsa.pub <user>@<remote_server>:.ssh/id_dsa.pub
$ ssh <remote_server>
$ cd .ssh
$ cat id_dsa.pub >> authorized_keys2
Now, you should be able to login to the remote server by entering:
$ ssh <remote_server>
CVS settings
Environment variables
Setup the CVS environment variables:
$ export CVS_RSH=’ssh’;
$ export CVSROOT=:ext:username@server:/path/to/repository
Basic commands
Checking out:
$ cvs checkout <modulename>
Adding files:
$ cvs add <filename>
Commit:
$ cvs commit
Update:
$ cvs update
Add a new module:
$ cvs import -m ‘Initial import’ <modulename> <author> <tag>