Setting Up Cygwin to Use SSH on a Microsoft Windows MachineBefore reading this section, make sure you've installed the Subversion client. As described at About Subversion, you can download the Subversion client as an installable binary from http://subversion.tigris.org/. Use the default settings and ensure that the installer adds the Subversion path to the system PATH environment variable.
In addition, these instructions assume that you've generated an SSH key as described at Generating and Using an SSH Key on a Microsoft Windows Machine. For use by Cygwin as described below, the private key must be in OpenSSH compatible format. If necessary, you can export your private key to an OpenSSH compatible version using PuTTYgen.
Note: Thanks to David North, who figured out how to do all this and posted instructions on his blog at http://www.dnorth.net/2007/09/08/svn-ssh-on-windows/.
- Install Cygwin and make sure you include the openssh package.
- Edit the C:\Documents and Settings\your-username\Application Data\Subversion\config file to include a line like the following:
ssh = c:/cygwin-root-path/bin/ssh.exe -i "C:/privatekeypath"
Note: You must use forward slashes (/) in the path to the private key file!
- You can now use the Cygwin command line with your Subversion repository. For example:
svn co svn+ssh://firstname.lastname@example.org/project-name~your-svn-repos