http://www.hccp.org/wincvs-ssh-how-to.html#wincvs2
This is a detailed HOW-TO on using WinCVS over SSH. It is based on configuration information originally provided by SimonLei on the IntelliJ Community Wiki, where alternate strategies for enabling CVS over SSH, and in particularwith IntelliJ IDEA, can be found.
- Download and Install WinCvs
- Download and Install PuTTY
- Create BAT file to invoke plink.exe
- Configure WinCVS
- Add a file to the repository.
- Download WinCVS 1.3 (or higher):
- Binary distributions are available at the WinCvs homepage: http://www.wincvs.org/download.html . . . as well as directly from SourceForge: http://prdownloads.sourceforge.net/cvsgui/WinCvs13b13-2.zip?download
- Binary distributions are available at the WinCvs homepage: http://www.wincvs.org/download.html . . . as well as directly from SourceForge: http://prdownloads.sourceforge.net/cvsgui/WinCvs13b13-2.zip?download
- After installation, make sure that cvs.exe is in your path:
- Download PuTTY:
- After installation, make sure that plink.exe is in your path:
- 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%
- Be sure to enter your password into the line that invokes plink.exe
- Set the environment property CVS_RSH to the above BAT file:
- Open the Preferences panel from the Admin menu:
- In the General tab, select the ssh option from the Authentication dropdown, then click on the Settings button to the right of the drop-down:
- In the SSH Options dialog, enter the path to the bat script created in previous steps:
- Back on the General tab, enter CVS server access information (CVSROOT, login, etc.):
- You are now ready to start accessing the CVS repository. To check
out a module into the current working directory, select the Command
Line option from the Admin menu:
- You can now enter the cvs command for checking out a module (cvs checkout module/path/relative/to/CVSROOT), just you would from a shell command line environment:
- Clicking OK will now download the current version of the module
from the CVS repository to the current WinCVS working directory. You
will now be able to edit, add, and commit elements to the CVS repository
from the local working directory:
Adding a file to the repository:
- To add a file, first copy the file, using the normal Windows
Explorer, to the checked out module directories. After copying the file,
it should appear in the WinCVS browser as an editable, non-cvs file.
Clicking on the Add icon, located in the WinCVS toolbar, will then
perform the initial add operation:
It is important to note that there are different Add buttons for binary and text files! - The next step, after adding the element, is
to commit the file. Until this operation takes place, the file will
have no version information associated with it. To commit, click on the
Commit icon:
You will be prompted for a comment:
The file is now checked in:
For more information on developing with CVS, visit http://www.cvshome.org/