« August 2006 | Main | October 2006 »

September 15, 2006

[Tech Support] Configuring TortoiseSVN with public key authentication on Windows

The process is somewhat painful, but in the end, you get right-click access to CVS. I assume that you have an CVS server running with ssh.

1. Get some software. TortoiseCVS, putty.

2. Set up your key pairs. There are many tutorials on this, but the main catches here are: (a) puttygen can be found in C:\Program Files\TortoiseCVS\puttygen.exe (assuming you installed tortoiseCVS in the expected location). (b) Don't save the public key generated by puttygen in a file then scp it over to your server. The line breaks are all wrong. You should do a cut and paste job instead (that's why you downloaded putty.exe, tortoisecvs comes with an ssh client, but it was, um, inadequate). When it says "Public key for pasting into an OpenSSH authorized_keys file" it means it. (c) remember where you save your private key.

3. When you configure your server information for the first checkout, set the protocol to ext rather than ssh. This will simplify passing your private key file as a command line parameter.

4. After tortoiseCVS's reboot (also a good time to finish off those windows updates), right click a folder then select TortoiseCVS|Preferences. In the Tools pane, add the text -i c:\path\to\privatekey\privatekey.ppk to the SSH parameters.

5. That should do it.

Posted by jones at 09:57 AM | Comments (0)