Howto - CVS

Intro

Everybody has access to the CVS of this project. For this you may have anonymous access with the following command line:

     cvs
     -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/plstrutsit
     login

     cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/plstrutsit
     co modulename
   

Known modulenames are:

CVS nameDescriptionStatus
architectureReady to go components for webbased applications.released 0.5-dev
chain-confEasy configuring and using commons-chainreleased 1.0.2
applicationA demo project puttint Struts, Tiles and Velocity together.Executable

People who works with WinCvs has to add at the administrator preferences:

    CVSROOT: [username]@cvs.sourceforge.net:/cvsroot/plstrutsit
    Authentication: SSH server 
    

For comitters only

If you have comitter rights, you have only access to the repository via ssh. Here is a short introduction what to do.

First you have to generate a key. For this you may download the putty distribution.

Generating the key-pair.

Putty downloadsite.

If you have unpacked the distribution you call the puttygen.exe file for generating a key-pair.

Be care for the following things:

  • Select a SSH2 RSA key for generating.
  • Create a 1024 bit key.
  • After generating the key don't use the save button to save the key. The save button saves the key in a special putty manner. For the sourceforge server we need a OpenSSH compied key. This can may you get by copying the key out of the window. By option you can save the key also in putty format.

In a unix environment you can create the key with the ssh-keygen tool.

       $ ssh-keygen -b 1024 -t rsa -P myphrase
       Generating public/private rsa key pair.
       Enter file in which to save the key (/home/mwolff/.ssh/id_rsa):
       Your identification has been saved in /home/mwolff/.ssh/id_rsa.
       Your public key has been saved in /home/mwolff/.ssh/id_rsa.pub.
       The key fingerprint is:
       e6:4f:bd:eb:04:98:0e:9c:3f:3e:a8:4d:4b:9a:4f:a6 mwolff@laptopc027  
  

Installing your public key at sourceforge.net

So at least you have three files: The saved public key in putty manner, the saved private key and the saved private key in OpenSSH manner. This key you have to install at sourceforge.net. For that you enter your my.sf.net and select the Account Options menu item. Scroll down to the "Host Access Information" and install your key.

Prepare your putty environment

If you use putty for ssh access you may use the putty-agent to handle your keys. After you have started the pageant.exe file you get an icon in your taskbar notification area. A right click this icon gets the possibility to add private keys to the agent. The agent asks you at your passphrase and store it for this windows session. If you use the agent you only have to enter your passphrase once and not at every access to the cvs server. If you use cygwin there is also a key agent call ssh-agent.

Prepare your ssh client

The best is, you use wincvs because ides as eclipse don't provide a ssh with public keys really. So you have to put the following informations to your favorite ssh client:

PropertyValue
Servercvs.sourceforge.net
Path to the Repos/cvsroot/plstrutsit
AuthenticationSSH Server
SSH Programplink.exe

Here is a example of my account. If you press "Settings ..." you get the second dialog.