HOW-TO: Using CVS over SSH with IntelliJ IDEA on Windows

Author: Ian Brown spam@hccp.org

This is a detailed HOW-TO on using CVS over SSH with IntelliJ IDEA on Windows. It is based on configuration information originally provided by SimonLei on the IntelliJ Community Wiki, where alternate strategies for enabling CVS over SSH with IDEA can be found.

Download and Install WinCvs

  1. Download WinCVS 1.3 (or higher):
  2. After installation, make sure that cvs.exe is in your path:

Download and Install PuTTY

  1. Download PuTTY:
  2. After installation, make sure that plink.exe is in your path:

Create a BAT file to invoke plink.exe:

  1. Save the following BAT script:
    @echo off
    set CMD_LINE_ARGS=
    :setArgs
    if ""%1""=="""" goto doneSetArgs
    set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    shift
    goto setArgs
    :doneSetArgs
    
    plink.exe -ssh -pw your-password-goes-here %CMD_LINE_ARGS%
    
  2. Be sure to enter your password into the line that invokes plink.exe

  3. Set the environment property CVS_RSH to the above BAT file:

Configure IntelliJ IDEA:

  1. Select CVS from the VCS Support dropdown in the IntelliJ Project Properties panel:



  2. Set the path to WinCvs client:



  3. Edit CVS roots:



  4. Right click on src node in project sidebar, select CVS, then Checkout from the menu:



  5. Enter the module you would like to work with into the CVS Checkout panel. This should be the relative directory path from the cvs root:



  6. Source should now be downloaded from the remote CVS repository!



  7. Use the Commit option to send changes back to the CVS repository.

  8. For more information on developing with CVS, visit http://www.cvshome.org/