Using CVS over SSH from Cygwin

I found it a bit tricky to get cygwin's OpenSSH to work with my CVS server. This document shows the configuration I used.

On my Windoze machine (under cygwin tcsh) I have the following environment variables set:


     setenv CVSROOT ":ext:aaron@dodo:/home/cvsroot"
     setenv CVS_RSH sshAaron
     setenv CVSEDITOR notepad
     setenv CVSREAD 1
Where dodo is my cvs server machine, and aaron is my username on this server.

I had trouble getting straight ssh to work, so for CVS I use the following wrapper script called sshAaron:


     #!/usr/bin/sh
     exec ssh -v -1 -t -l aaron $1 $2 $3 $4 $5 $6 $6 $8

With these environment settings I was able to use the standard ssh-authentication procedures to set up password-less access to the main CVS repository over the internet with secure connections.


Aaron Birenboim
Last modified: Wed Nov 23 08:16:18 MST 2005