Now you should be able to use CVS from NT command line.
- Take a look on Squid Development projects CVS repository
- Download and install WinCvs (see before)
- Download ssh-1.2.14-win32bin.zip
- Create directories for the SSH executables and config files
- If you don't have a 'home' directory for yourself, create it now.
For example, my home directory is c:\users\serassio. In the home
directory, create a .ssh directory -- this is where your ssh keys will
Warning: All directories must be in the same logical drive !
- Unpack the ssh-1.2.14-win32bin.zip archive into (for example)
- Add c:\usr\local\bin to your PATH.
- Using your favorite text editor, create a PASSWD file in c:\etc.
The format of a line the file is:
The important items are #1, #6. #1 is the login name on the local
machine. #6 is your home directory. #7 is the command shell on your
system (command.com on Win95 and cmd.exe on NT) -- but since it is not a
*NIX shell, it's probably useless to put it in there :-).
- Set your HOME environment variable to the same directory you
entered as item #6 in the /etc/passwd file:
- Generate an SSH keypair. Unfortunately, there is a bug in the ssh-keygen
tool on ssh-1.2.14-win32bin.zip archive: if you don't specify a key
comment, it try to auto generate a comment in the usual form username@machine,
but it fails on gethostname call, without produce a SSH key par. So you
must specify a comment when run ssh-keygen, for example, to generate a
keypar with the usual comment:
ssh-keygen –C %username%@%computername%
Alternately you can use the ssh-keygen executable from a different SSH
archive. For example, you can use ssh-keygen from CygWin. You must set
on /etc/passwd of CygWin the same home directory, like:
After running this command, verify that identity and identity.pub
files are present in your .ssh directory.
- Test your connection to SourceForge:
ssh -l username projectname.sourceforge.net
Of course, substitute your SourceForge username and projectname for
username and projectname in the command above.
- Accept the key from SourceForge, and when prompted, enter your password for SourceForge.
- On your user page at SourceForge, you should find a place to
upload your SSH public key. Copy the file identity.pub into the text entry box on the page -- be sure not to add any line breaks or it will not work.
- After the requisite 6 hour wait, you should be able to use CVS with SSH without using your password.
- Set the system environment variable: CVS_RSH=ssh