Difference between revisions of "Tortoise SVN with PuTTY"

From Noah.org
Jump to navigationJump to search
m
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
[[Category:SVN]]
 
[[Category:SVN]]
  
== TortoiseSVN with PuTTY key pairs ==
+
== Avoid typing your SSH password by using PuTTY Pageant ==
  
This will allow you to authenticate once with SVN, so you don't have to
+
This will allow you to authenticate once with PuTTY's Authentication Agent, Pageant. This saves you from having to enter your password every time you access the SVN server. This is only useful when you are using the svn+ssh method of accessing the SVN server.
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.
 
  
#. Get PuTTY and install it: [http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe putty-0.60-installer.exe] Also check here to see if there is a newer version: [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY Download].
+
# Get PuTTY and install it: [http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe putty-0.60-installer.exe] Also check here to see if there is a newer version: [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY Download].
#. In your "Start menu | All Programs " you should see a new menu "PuTTY".
+
# In your "Start menu | All Programs " you should see a new menu "PuTTY".
#. Pageant needs to be running in the background in order to automatically authenticate you when you use Tortoise to connect to the SVN server. Under PuTTY open "Pageant". This will show up on your applet tray in the lower right of your Windows Taskbar; it looks like a computer wearing a hat. You may put Pageant in your "Start | All Programs | Startup".
+
# Pageant needs to be running in the background in order to automatically authenticate you when you use Tortoise to connect to the SVN server. Under PuTTY open "Pageant". This will show up on your applet tray in the lower right of your Windows Taskbar; it looks like a computer wearing a hat. You may put Pageant in your "Start | All Programs | Startup".
#. Also open "PuTTYgen".
+
# Also open "PuTTYgen".
#. Click "Generate" to create a new key pair.
+
# Click "Generate" to create a new key pair.
#. See the "Public key for pasting into OpenSSH authorized_keys file" and below that enter a "Key passphrase" and "Confirm passphrase".
+
# See the "Public key for pasting into OpenSSH authorized_keys file" and below that enter a "Key passphrase" and "Confirm passphrase".
#. 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.
+
# 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.
#. 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>ssh-rsa AAAAB3NzaC1yc2EAAAAQJQAAAIEAo73h1A5bcGdIv5U6IE1Q1vq3wp1YJUkn4y2vZHvwJQMOFdi7JnGNNl5kUW2Sh0KE5VVw4nAxjSjKh7n+uToks6Gp2NAQ2o14kzUBeefX5uE01q0dLoRdCEIn2PTxpyzDKtRojLRcBS62IIiWmUG0n1AOF2QdtNfaCT+DfcP2aKM= rsa-key-20060809</pre>
+
# 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>ssh-rsa AAAAB3NzaC1yc2EAAAAQJQAAAIEAo73h1A5bcGdIv5U6IE1Q1vq3wp1YJUkn4y2vZHvwJQMOFdi7JnGNNl5kUW2Sh0KE5VVw4nAxjSjKh7n+uToks6Gp2NAQ2o14kzUBeefX5uE01q0dLoRdCEIn2PTxpyzDKtRojLRcBS62IIiWmUG0n1AOF2QdtNfaCT+DfcP2aKM= rsa-key-20060809</pre>
#. 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.
+
# Login to the 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 the permissions are correct: <pre>chmod 700 ~/.ssh; chmod 600 ~/.ssh/authorized_keys</pre>
#. On your local Windows machine Right-click on the Pageant icon (a computer wearing a hat in the applet tray).
+
# On your local Windows machine Right-click on the Pageant icon (a computer wearing a hat in the applet tray).
#. select "Add key"
+
# select "Add key"
#. select the "id_rsa.ppk" that you saved in step 7.
+
# select the "id_rsa.ppk" that you saved in step 7.
#. TortoiseSVN should now authenticate automatically through Pageant.
+
# TortoiseSVN should now authenticate automatically through Pageant.

Latest revision as of 16:01, 18 February 2009


Avoid typing your SSH password by using PuTTY Pageant

This will allow you to authenticate once with PuTTY's Authentication Agent, Pageant. This saves you from having to enter your password every time you access the SVN server. This is only useful when you are using the svn+ssh method of accessing the SVN server.

  1. Get PuTTY and install it: putty-0.60-installer.exe Also check here to see if there is a newer version: PuTTY Download.
  2. In your "Start menu | All Programs " you should see a new menu "PuTTY".
  3. Pageant needs to be running in the background in order to automatically authenticate you when you use Tortoise to connect to the SVN server. Under PuTTY open "Pageant". This will show up on your applet tray in the lower right of your Windows Taskbar; it looks like a computer wearing a hat. You may put Pageant in your "Start | All Programs | Startup".
  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 the 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 the permissions are correct:
    chmod 700 ~/.ssh; chmod 600 ~/.ssh/authorized_keys
  10. On your local Windows machine Right-click on the Pageant icon (a computer wearing a hat in 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.