Setting up CVS over SSH on Windows 2000/XP

Journal entry
November 1, 2004

The last month I’ve had to setup CVS clients on a few different machines and each time I have cursed under my breath over how annoying Windows is for this.

Basically I wanted command line CVS access over SSH2 using public/private key authentication and I wanted to install as few tools as possible (read: preferably no Cygwin). I ended up using PuTTY’s Plink application for the SSH part and the “official” Win32 CVS client port.

What follows is my guide to installing CVS. Note, this is what worked for me, nothing else. This might work for you, it might not, and it might blow up your computer, so use at your own risk.

  1. Get the latest, stable WIN32 commandline CVS client from CVSHome.org
  2. Unpack cvs.exe to your C:\WINDOWS\System32\ (or another directory in your path-variable)
  3. Get PuTTY and Plink and install them. I installed both to my C:\Program Files\PuTTY\ and added this to the path variable.
  4. Use PuTTY to establish a SSH connection to the CVS server. Set it up like you want to, using your private key and username, and save the session in PuTTY. If you’re lazy like me make sure the connection doesn’t require any interactivity to login, ie doesn’t ask for username and/or password.
  5. Test the SSH connection from command line using Plink sessionname, where sessionname is the name you saved the PuTTY session as. If this works you’re good to go for the next steps.
  6. Create a new global enviroment variable called CVS_RSH with the value “plink.exe”. Note this will only exist in Command Line windows opened subsequently.
  7. You should now be able to test the CVS connection using cvs -d :ext:user@session:/home/cvs/ version. If this works, you’re good to go.

Happy committing.

Categories
Selling out
Did you know?
Jakob is an independent web application developer who builds awesome stuff for the web. You can hire him to build awesome stuff for you.

Comments and Trackbacks

Thomas Bentzen November 16, 2004

Why the heck all that fuss??!!?

Here is the simple version:
1. Download latest installer from http://www.tortoisecvs.org/. No other software required!
2. Add the install folder to your systems path. eg: "C:\Program Files\TortoiseCVS".
3 Be happy, there is nothing more. Now you have a CVS client integrated in windoze explorer and also a geek CLI version at your fingertips. Supports all major protocols including ext (ssh direct access), pserver, ntserver and local folder.

Work smarter, not harder :-).

Jakob S November 17, 2004

There are a few reasons why I didn't even look at TortoiseCVS.

1. I had no clue TortoiseCVS had a commandline interface.
2. I went for consistency across platforms - Is TortoiseCVS consistent with the "proper" CVS CLI?
3. Last time (2 years ago, I reckon) I tried out TortoiseCVS it didn't work for some reason that my memory won't let me recall.

Commenting on this entry has been closed.