This article was originally written by Satyadev Nandakumar (satyadev AT cs.iastate.edu) on July 27, 2003.

We'll divide the setup into three logical steps:

top

Requirements

  1. Windows 98/NT/2000 oeprating system
  2. Free software release of WinCVS
  3. Cygwin layer with OpenSSH
  4. TCL (for the optional WinCVS macros)
top

WinCVS

top

Cygwin + OpenSSH

top

WinCVS with SSH

Setting up WinCVS for using SSH
  • Start WinCVS. It will most probably open a menu with values to be entered. If it does not, open the [Admin]->[Preferences] menu. It will open the [General] options tab. Enter:
    [Admin]->[Preferences]->[General]
    Authentication: ssh
    Path:           /cvsroot/PN
    Host Address:   cvs.PN.sarovar.org
    User Name:      UN
    CVSROOT:        UN@cvs.PN.sarovar.org:/cvsroot/PN
    

    Where UN and PN are you user and project names respectively.

    For instance,

    [Admin]->[Preferences]->[General]
    Authentication: ssh
    Path:           /cvsroot/smc
    Host Address:   cvs.smc.sarovar.org
    User Name:      satyadev
    CVSROOT:        satyadev@cvs.smc.sarovar.org:/cvsroot/smc
    
    (pic)
  • Now, in the Authentication Settings, add the path name of the openssh that you installed with the cygwin software.
    [Admin]->[Preferences]->[General]->[Authentication Settings]
    RSA public identity file (unchecked)
    If SSH is not in the path(checked): <cygwinpath>\bin\ssh.exe
    Additional SSH options   (unchecked)
    
    For instance,
    [Admin]->[Preferences]->[General]->[Authentication Settings]
    RSA public identity file (unchecked)
    If SSH is not in the path(checked): C:\cygwin\bin\ssh.exe
    Additional SSH options   (unchecked)
    
    (pic)
  • In the WinCvs tab, enter:
    [Admin]->[Preferences]->[WinCvs]
    External diff program (checked): <cygwinpath>\bin\diff.exe
    Default Viewer to be used: Notepad
    Use on double-click(checked)
    
    For instance,
    [Admin]->[Preferences]->[WinCvs]
    External diff program (checked): <cygwinpath>\bin\diff.exe
    Default Viewer to be used: Notepad
    Use on double-click(checked)
    
    (pic)
  • Now, in the Global Tab, enter the following values:
    [Admin]->[Preferences]->[Global]
    Checkout read-only                  (unchecked)
    Supply Control when Adding Files      (checked)
    Quiet  Mode                         (unchecked)
    TCP/IP Compression                            3
    Dirty Files Support	              (checked)
    Prune empty directories               (checked)
    Disable Splash Screen               (unchecked)
    Logout automatically after _        (unchecked)
    Checkout textfiles with the Unix LF   (checked)
    
top

Checking out a Module

  • Take the [Create]->[Checkout Module] dialog box
  • Select your local home folder (pic)
  • Enter the module name to check out in the [Create]->[Checkout Module] ->[Checkout Settings] tab. Also enter the local folder. (pic)
  • Force the current CVSROOT in the [Create]->[Checkout Module] ->[Checkout Options] box (pic)
  • Checkout (Press OK).
  • With luck, a command shell will have come up which will ask you the password. (pic)
  • You can check the progress, wait till it succeeds
  • Celebrate! ;-)