I access my Linux box CVS repository from my Windows box using Tortoise CVS. It prompts you for a password all day long, which is a PITA. Tortoise CVS docs explain the possible ways to fix this. The most official way is to set up SSH to use a private key with no passphrase – as long as it finds the file, you will get authenticated. Here’s what I did:

  • Get Putty (including putty.exe, pagent.exe, puttygen.exe, and pscp.exe). Putty r0xx0r5.
  • Put the putty files in your Windows path somewhere.
  • Run puttygen.exe to generate a key. Use a blank passphrase. Don’t close the keygen screen yet.
  • Save the private key to a floppy disk, using the Save button.
  • Connect to your linux box and edit /home/#you#/.ssh/authorized_keys (creating it if needed).
  • Copy the public key from the keygen public key edit box to a single line in the authorized_keys file. Save it. chmod 744 on it.
  • Back in Windows, set up pagent.exe to run on startup, with the following command line: pagent.exe a:myprivatekey
  • Open TortoiseCVS’s SSH settings (right-click a file and select CVS->Preferences->SSH).
  • Change the SSH client from TortoisePlink.exe to Plink.exe (the version that came with putty.exe).
  • Make sure PAgent.exe is running (it lives in the task bar) and has your key loaded up, then try a TortoiseCVS operation.

    DANG, it works! Cool… now take care of that private key file! :>

  • Leave a Reply