SC2Mapster.com Wiki

Repositories / How to use TortoiseSVN over SSH in 3½ easy steps

Install PuTTY

Link to PuTTY site: http://www.chiark.greenend.org.uk/~sgtatham/putty/

(There's an installer, and a zip package with everything you need here.) You can also download the individual components if you want.

Installs like any other program. Nothing special.

Run PuTTYgen

Click "Generate" to generate a key.

Type in a passphrase. You can leave it empty if you want but it's not recommended. Note that you will need to remember the passphrase, so don't just mash some buttons.

Copy the contents of the grey box and paste it in the box on this page:

http://www.curseforge.com/home/repository-authorization/edit/

Click "Save private key". This file will be like your password, so place it somewhere safe (not in a p2p shared folder for example). You can also save your public key somewhere if you want it for future reference.

Close PuTTYgen.

Run Pageant

Rightclick the little computer with the hat in the lower right corner of the screen.

Click "Add key".

Browse to your saved private key file (the .ppk).

Enter your passphrase when prompted. If you forgot your passphrase you'll have to go back to step 2 and generate a new key.

Now try to checkout with TortoiseSVN using the development url from your project page. If it isn't working make sure you did every step right. If it still isn't working, take a note of the error message you're getting and comment here or ask in the CurseForge IRC channel on freenode.org.

A better way to start Pageant

Pageant will not remember your key the next time you run it so you will have to add your key every time you start it. You can do this by making a shortcut with target like this:

C:\path\to\pageant.exe "C:\path\to\private_key.ppk"

It will still ask you for the passphrase but at least you don't have to browse for the key file. You can put the shortcut in the autostart folder if you want and it will automaticly run when you startup.

You must login to post a comment. Don't have an account? Register to get one!

  • 8 comments
  • Avatar of lynden624 lynden624 Thu, 27 Oct 2011 21:40:10

    efdsdvscdsgdrgdds

  • Avatar of dodjango dodjango Tue, 25 Jan 2011 21:05:35

    If you already checked any steps twice or more and pageant is running with the right key but you still cannot acces your repo with tortoise, beware the windows UAC (vista + win7).

    Pageant and your SVN Client (e.g. tortoise) have to run as the same user account! So check if one of them runs as admin ("Run as administrator").

    I ran into this since my explorer (totalcommander) is running as admin to get have full rights on my storages.

    http://windows.microsoft.com/en-US/windows-vista/What-is-User-Account-Control

  • Avatar of DarkSpyro003 DarkSpyro003 Sat, 18 Oct 2008 11:19:32

    http://www.curseforge.com/users/current-profile/public-key/edit/ gives me an error 404 How do I enter the key now?

    [Edit] Error: Connection closed unexpectedly (Couldn't load this key, unable to open file from Pageant)

  • Avatar of markushe73 markushe73 Fri, 30 May 2008 18:30:11

    I am having problems authenticating too.
    Here the steps I made:

    I created a pair of keys like described above (with puttygen).

    I set my public key at http://www.curseforge.com/users/current-profile/public-key/edit/
    It looks like "sh-rsa AAAAB3Nza....rsa-key-20080530", just longer, all in one line (copied from puttygen)

    I saved my private key to a file, started pageant and loaded the private key (since I set a passphrase when I generated the key I had to provide the passphrase when loading the key)

    To test my repository I tried to browse it with Tortoise:
    right klick in Explorer, "TortoiseSVN->Repo-browser"
    I copied the development-url from my project page into the URL textbox of Tortoise and klick ok. When opening "trunk" i get "Error * Authorization failed"

    I several times checked if
    - pageant ist running with the right private key loaded
    - I uploaded the right public key

    In the Tortoise-Network settings I left the SSH-Client field empty because as far as I kow Tortoise is using TortoisePlink.exe by default, which is a modified version of the plink tool from the putty suite and uses the keys provided in pageant.

    Am I missing something?

  • Avatar of ganders ganders Thu, 29 May 2008 00:34:11

    I followed all the instructions on this page (twice) and yet there is no SVN URL appearing on my repository page. http://wow.curseforge.com/projects/ni.../mainline/

  • Avatar of Phanx Phanx Sat, 24 May 2008 00:37:25

    I copied and pasted directly from PuTTYgen, so there is no typing error. I saved a copy in a text file, and it is indeed all one line. There is no possibility of the wrong key being loaded, as this is the only .ppk file anywhere on my system. I have tried closing Pageant, deleting the .ppk file, running PuTTYgen again, entering the new public key on the Curse account page, saving the private key again, reopening Pageant, and loading the key, a total of 3 times, with no change in result.

    Today, however, I'm not longer getting "Connection closed unexpectedly". Instead, I'm getting "No repository found in 'svn+ssh://svn@svn.curseforge.net/wow/grid-status-healing-reduced/mainline/trunk'". This URL is copied and pasted directly from the "Repository Details" page for my project, found here:

    http://wow.curseforge.com/projects/grid-status-healing-reduced/repositories/mainline/

    It occurred to me that I should probably import before trying to checkout, but TSVN gives me the same error either way.

  • Avatar of Snago Snago Fri, 23 May 2008 09:09:20

    "Connection closed unexpectedly" is what I get without my key added to pageant. I suggest you double check that you've added the right key.

    Also check that the public key is typed in correctly. Mine looks like this (except longer):

    ssh-rsa AAAAB3NzaC1yc2EAAAABJQA ... vHdXanZsMw2Cw== rsa-key-20080519
    

    It's supposed to be all on one line.

  • Avatar of Phanx Phanx Fri, 23 May 2008 08:01:57

    I have followed all of the above steps. Pageant is running with my private key file loaded. When attempting to checkout using the development URL listed on my Repository Details page, I just get "Connection closed unexpectedly" from TortoiseSVN. There is no other error message. Running Windows XP Professional x64 Edition if this makes a difference. Any suggestions?

  • 8 comments

Facts

Date created
22 May 2008
Last updated
12 Jul 2011