Difference between revisions of "Tortoise SVN with PuTTY"

From Noah.org
Jump to navigationJump to search
Line 2: Line 2:
 
[[Category:SSH]]
 
[[Category:SSH]]
 
[[Category:SVN]]
 
[[Category:SVN]]
 +
 
== TortoiseSVN with PuTTY key pairs ==
 
== TortoiseSVN with PuTTY key pairs ==
  
Line 18: Line 19:
 
2. In your "Start menu | All Programs " you should see a new menu "PuTTY".
 
2. In your "Start menu | All Programs " you should see a new menu "PuTTY".
  
3. Under PuTTY open "Pageant".
+
3. Under PuTTY open "Pageant". Note: This will show up on your applet bar in the lower right on Windows. This needs to run continuously to automatically authenticate for you when you connect to SVN. You can put this in your Start menu if you want.
Note: This will show up on your applet bar in the lower right on Windows.
 
This needs to run continuously to automatically authenticate for you
 
when you connect to SVN. You can put this in your Start menu if you want.
 
  
 
4. Also open "PuTTYgen".
 
4. Also open "PuTTYgen".
Line 34: Line 32:
  
 
8. Select All and Copy the text from the text box, "Public key for pasting into OpenSSH authorized_keys file". It should look something like this:
 
8. Select All and Copy the text from the text box, "Public key for pasting into OpenSSH authorized_keys file". It should look something like this:
 +
 
<pre>
 
<pre>
 
ssh-rsa AAAAB3NzaC1yc2EAAAAQJQAAAIEAo73h1A5bcGdIv5U6IE1Q1vq3wp1YJUkn4y2vZHvwJQMOFdi7JnGNNl5kUW2Sh0KE5VVw4nAxjSjKh7n+uToks6Gp2NAQ2o14kzUBeefX5uE01q0dLoRdCEIn2PTxpyzDKtRojLRcBS62IIiWmUG0n1AOF2QdtNfaCT+DfcP2aKM= rsa-key-20060809
 
ssh-rsa AAAAB3NzaC1yc2EAAAAQJQAAAIEAo73h1A5bcGdIv5U6IE1Q1vq3wp1YJUkn4y2vZHvwJQMOFdi7JnGNNl5kUW2Sh0KE5VVw4nAxjSjKh7n+uToks6Gp2NAQ2o14kzUBeefX5uE01q0dLoRdCEIn2PTxpyzDKtRojLRcBS62IIiWmUG0n1AOF2QdtNfaCT+DfcP2aKM= rsa-key-20060809
 
</pre>
 
</pre>
  
9. Login to your remote server and edit your ~/.ssh/authorized_keys file.
+
9. Login to your remote server and edit your ~/.ssh/authorized_keys file. Paste the Public Key that you copied from PuTTYgen. Write the file and you can logout of the remote server. You might have to create this file and directory. If so, then be sure to chmod the file to 600 and chmod ~/.ssh to 700.
Paste the Public Key that you copied from PuTTYgen. Write the file and you can logout of the remote server.
 
You might have to create this file and directory. If so, then be sure to chmod the file to 600 and chmod ~/.ssh to 700.
 
  
 
10. On your local Windows machine Right-click on the Pageant icon (looks like a black hat on a monitor on the applet tray).
 
10. On your local Windows machine Right-click on the Pageant icon (looks like a black hat on a monitor on the applet tray).

Revision as of 11:10, 7 August 2007


TortoiseSVN with PuTTY key pairs

This will allow you to authenticate once with SVN, so you don't have to enter your password every time you access the SVN server. This is useful when you are using the svn+ssh method of accessing the server.

1. Get PuTTY and install it:

   http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe

or here:

   http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

2. In your "Start menu | All Programs " you should see a new menu "PuTTY".

3. Under PuTTY open "Pageant". Note: This will show up on your applet bar in the lower right on Windows. This needs to run continuously to automatically authenticate for you when you connect to SVN. You can put this in your Start menu if you want.

4. Also open "PuTTYgen".

5. Click "Generate" to create a new key pair.

6. See the "Public key for pasting into OpenSSH authorized_keys file" and below that enter a "Key passphrase" and "Confirm passphrase".

7. Click "Save private key". This can be anywhere on your local Windows machine. Do no check the private key into the Subversion repository. It should be called "id_rsa.ppk". Keep this file safe as it unlocks your account on the SVN server.

8. Select All and Copy the text from the text box, "Public key for pasting into OpenSSH authorized_keys file". It should look something like this:

ssh-rsa AAAAB3NzaC1yc2EAAAAQJQAAAIEAo73h1A5bcGdIv5U6IE1Q1vq3wp1YJUkn4y2vZHvwJQMOFdi7JnGNNl5kUW2Sh0KE5VVw4nAxjSjKh7n+uToks6Gp2NAQ2o14kzUBeefX5uE01q0dLoRdCEIn2PTxpyzDKtRojLRcBS62IIiWmUG0n1AOF2QdtNfaCT+DfcP2aKM= rsa-key-20060809

9. Login to your remote server and edit your ~/.ssh/authorized_keys file. Paste the Public Key that you copied from PuTTYgen. Write the file and you can logout of the remote server. You might have to create this file and directory. If so, then be sure to chmod the file to 600 and chmod ~/.ssh to 700.

10. On your local Windows machine Right-click on the Pageant icon (looks like a black hat on a monitor on the applet tray).

11. select "Add key"

12. select the "id_rsa.ppk" that you saved in step 7.

13. TortoiseSVN should now authenticate automatically through Pageant.