written on Tuesday, July 3, 2007
This morning, I needed to access an svn+ssh Subversion repository from a Windows box. Since I am a command line aficionado, I decided to do it using the Subversion command line client. It turned out to be quite more complicated than I thought... So here is how I did it :
Download plink.exe and puttygen.exe from Putty website.
Next step is to generate an SSH key and place it on your server.
$HOME/.ssh/authorized_keysfile (create it if it does not exist). The content of this text field is different from what you would get with the "Save public key" button. Do not try to copy this generated public key. It won't work.
plink -i c:pathtoyourkey.ppk user@server
If everything goes well, you should get logged in without getting asked for your password. Now you need to configure Subversion to use plink for "svn+ssh" uri.
c:\Documents and Settings\user\Application Data\Subversion\config
ssh=c:/path/to/plink.exe -i c:/path/to/your/key.ppk
You are done, it should work now. Let's give a try:
svn co svn+ssh://user@server/path/to/svn/repositoryblog comments powered by Disqus