Developers guide

95
C. Software tools
C.1. CVS - Windows
Instructions for accessing the APT CVS repository on Linux based machines is available from Keith
Bannister’s APT Software page [ 53 ]. These instructions are included to simplify the installation
and configuration of CVS and SSH on Windows.
Note that these instructions below will not work for the cvsanon user.
C.1.1. Install SSH
An excellent ssh implementation for windows can be downloaded from
http://www.networksimplicity.com/openssh/. Simply extract the openssh34-3.zip file and run
setup.exe. Accepting the default installation options is recommended.
Place the C:\Program Files\NetworkSimplicity\ssh in the PATH by doing either:
C:\set PATH= C:\Program Files\NetworkSimplicity\ssh;%PATH%
or
Right click My Computer -> Properties and from the Advanced tab select
Environment Variables.
Create your private and public keys:
C:\ssh-keygen –t dsa
Accept the default settings, do not enter a pass phrase for your key. This will hinder automated
logins.
Now, setup automatic authentication. Ensure that a .ssh directory exists on the remote host.
This will automatically be created whenever you first ssh to another host.
Copy your public key to the remote host:
scp "C:\Program Files\NetworkSimplicity\ssh\.ssh\id_dsa.pub"
user@remotemachine:/~/.ssh/mypublickey
From the remote host, add your public key to the list of authorized keys:
[user@remotehost:~]cat ~/.ssh/mypublickey >> ~/.ssh/authorized_keys2
Now, you should be able to ssh to remotehost without entering a password. If there is a
problem, ensure that the authorized_keys2 file does not have a corrupt entry.
C.1.2. Install CVS
CVS can be downloaded from http://www.cvshome.org. Simply download the latest stable
build. This guide was prepared using cvs-1-11-2.zip. This zip file contains one file, cvs.exe,
which must be placed in you PATH. This can be done in the same fashion as shown above.
All that remains is to set the CVS_RSH environment variable. This should be set to the path of the
ssh.exe file.