Posts Tagged ‘subversion

10
Feb
09

svn+ssh on windows

Without TortoiseSVN. Yep. Straight up command line.

This is a problem that’s plagued me for a while. I’ve tried to work out the kinks before, only to be frustrated by the various ways that you can affect the configuration on the windows host. I believe I’ve finally got the solution and I’m interested to find how many other folks run into this problem and have a different solution.

So without further ado, try the following:

  1. Download the windows version of the command line client.
  2. Download the putty suite of tools.
  3. Generate a new key pair on the remote unix server acting as the repo.
  4. Copy the private key from the remote server and convert it using puttygen.
  5. In your svn config file, include the following in the tunnel section (or where ever you’ve placed the key):
  6. ssh=”C:/Program Files/PuTTY/plink.exe” -i “C:/Program Files/PuTTY/id_dsa.ppk”

  7. Now use the svn+ssh syntax and list a url in the repo.

You’re good to go.

For more information on generating ssh keys, check out this documentation.

UPDATE

Funny. Just posted this and pointed it out to a friend. He immediately responds with the following link:

http://agateau.wordpress.com/2007/07/03/windows-svnssh-and-the-subversion-command-line-client/

Same steps, lot more detail. I defer to the better example in this case. 😉




May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031