User Tools

Site Tools


using_subversion_from_windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

using_subversion_from_windows [2008/03/26 09:21] – created jtkorbusing_subversion_from_windows [2008/03/26 10:00] (current) jtkorb
Line 1: Line 1:
 ====== Subversion Repository Access from Windows ====== ====== Subversion Repository Access from Windows ======
  
-One way to access the Subversion repository on ''secant.cs.purdue.edu'' from a Windows machine is to use the three programs ''puttygen'', ''putty'', and ''TortoiseSVN''.+One way to access the Subversion repository on ''host.cs.purdue.edu'' from a Windows machine is to use the three programs ''puttygen'', ''putty'', and ''TortoiseSVN''.
  
  
Line 8: Line 8:
 Copy [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|puttygen.exe]] to your desktop and launch it.  (These instructions were created using version 0.60.) Copy [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|puttygen.exe]] to your desktop and launch it.  (These instructions were created using version 0.60.)
  
-Press ''Generate'' to generate a private/public key pair (SSH-2 RSA 1024 bit default is fine).  Save the public key to, say, ''wiki.pub'' and the private key to, say, ''wiki.ppk'' (the PuTTY private key format).  (You can locate these files anywhere, such as in your My Documents folder.)  If you put a passphrase on the private key you'll need to type it when running PuTTY and TortoiseSVN.+Press ''Generate'' to generate a private/public key pair (SSH-2 RSA 1024 bit default is fine).  Save the public key to, say, ''mykey.pub'' and the private key to, say, ''mykey.ppk'' (the PuTTY private key format).  (You can locate these files anywhere, such as in your My Documents folder.)  If you put a passphrase on the private key you'll need to type it when running PuTTY and TortoiseSVN.
  
-Mail the **public** key to the [[jtk@cs.purdue.edu|site administrator]] (either as plain text or email attachment).+Mail the **public** key to the site administrator (either as plain text or email attachment).
  
-The site administrator will add a line like this one to the ''~cp-wiki/.ssh/authorized_keys'' file on ''secant.cs.purdue.edu''...+The site administrator will add a line like this one to the ''~site_login/.ssh/authorized_keys'' file on ''host.cs.purdue.edu''...
  
-  command="/opt/csw/bin/svnserve -t -r repository --tunnel-user=jtk",no-port-forwa+  command="/opt/csw/bin/svnserve -t -r repository --tunnel-user=YOU",no-port-forwa
   rding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABJ   rding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABJ
   QAAAIBlWFo6AFw0PThSBYnVDEAgCtGIehvRn1mhTStBFCxC68OHLUxui6bFGasQDzrR3xngEkz2cUHYz   QAAAIBlWFo6AFw0PThSBYnVDEAgCtGIehvRn1mhTStBFCxC68OHLUxui6bFGasQDzrR3xngEkz2cUHYz
   qzxNFza9fbf8j3O7Ea9x4M9g7IBh47quZWRiyS2oJdr42C06e3z+gjCBpUb/SBAOVznzayAtsIH8xycP   qzxNFza9fbf8j3O7Ea9x4M9g7IBh47quZWRiyS2oJdr42C06e3z+gjCBpUb/SBAOVznzayAtsIH8xycP
   U/S2gcFGQlumUNF6Q==   U/S2gcFGQlumUNF6Q==
- 
- 
  
 ====== Download and Run PuTTY (one time only required) ====== ====== Download and Run PuTTY (one time only required) ======
Line 26: Line 24:
 Copy [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|putty.exe]] to your desktop and launch it.  (These instructions were created using version 0.60.)  Configure these settings: Copy [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|putty.exe]] to your desktop and launch it.  (These instructions were created using version 0.60.)  Configure these settings:
  
-  * Session/Host Name: secant.cs.purdue.edu +  * Session/Host Name: host.cs.purdue.edu (host name provided by administrator) 
-  * Session/saved Session: secant //(press Save now, then again when configuration is complete)// +  * Session/saved Session: host //(press Save now, then again when configuration is complete)// 
-  * Connection/Data/Auto-login username: cp-wiki +  * Connection/Data/Auto-login username: svn_login (provided by administrator) 
-  * Connection/SSH/Auth/Private key file: //browse for your wiki.ppk file//+  * Connection/SSH/Auth/Private key file: //browse for your mykey.ppk file//
  
 Be sure to save the session (on the Session/Host Name menu).   Be sure to save the session (on the Session/Host Name menu).  
  
-If your public key has been installed on the wiki server (by the [[jtk@cs.purdue.edu|site administrator]] in the previous step), then proceed to test the ssh setup...+If your public key has been installed on the Subversion server (by the site administrator in the previous step), then proceed to test the ssh setup...
  
-Test the connection and configuration by pressing the ''Open'' button.  It should connect to secant.cs.purdue.edu (aka locutus.cs.purdue.edu) and login as cp-wiki (you'll need to provide your passphrase if you saved the private key with one).  Note that the login will only "half work": the server will refuse to allocate a pty.  This behavior is normal since the ssh key is not configured for direct shell login.+Test the connection and configuration by pressing the ''Open'' button.  It should connect to host.cs.purdue.edu and login as svn_login (you'll need to provide your passphrase if you saved the private key with one).  Note that the login will only "half work": the server will refuse to allocate a pty.  This behavior is normal since the ssh key is not configured for direct shell login.
  
 ====== Download and Install TortoiseSVN ====== ====== Download and Install TortoiseSVN ======
Line 43: Line 41:
 ====== Link TortoiseSVN to PuTTY Configuration File ====== ====== Link TortoiseSVN to PuTTY Configuration File ======
  
-Create a local folder for repository access, say, ''SECANT Repository''.+Create a local folder for repository access, say, ''Repository''.
  
 Right click on the folder and choose TortoiseSVN/Settings.  Select Network and fill in the location of the SSH client.  Use TortoisePlink.exe.  Browse to enter the full path name, but it should be ''C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe''. Right click on the folder and choose TortoiseSVN/Settings.  Select Network and fill in the location of the SSH client.  Use TortoisePlink.exe.  Browse to enter the full path name, but it should be ''C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe''.
- 
- 
  
  
 ====== Checking Out the Repository ====== ====== Checking Out the Repository ======
  
-Right click on the ''SECANT Repository'' folder and select ''SVN Checkout...'' In the "URL of repository" field, enter...+Right click on the ''Repository'' folder and select ''SVN Checkout...'' In the "URL of repository" field, enter...
  
-  svn+ssh://secant/+  svn+ssh://host/
  
-where ''secant'' is the name of the saved PuTTY session and click OK.  If you only want to check out a portion of the repository, e.g., the course lecture notes, use the URL...+where ''host'' is the name of the saved PuTTY session and click OK.  If you only want to check out a portion of the repository, e.g., directory henway, use the URL...
  
-  svn+ssh://secant/cs190c-lectures+  svn+ssh://host/henway
  
 ====== Using Pageant ====== ====== Using Pageant ======
Line 66: Line 62:
 Unfortunately, every time you load Pageant, you have to add your key to the set of keys it is managing.  One solution is to load Pageant when you start Windows by pasting a shortut to Pageant into the Startup submenu in the Start menu.  Then, you can edit the properties of this shortcut so that the target of the shortcut loads the key, by changing the target to: Unfortunately, every time you load Pageant, you have to add your key to the set of keys it is managing.  One solution is to load Pageant when you start Windows by pasting a shortut to Pageant into the Startup submenu in the Start menu.  Then, you can edit the properties of this shortcut so that the target of the shortcut loads the key, by changing the target to:
  
-  C:\Program Files\PuTTY\pageant.exe C:\Documents\Keys\wiki.ppk+  C:\Program Files\PuTTY\pageant.exe C:\Documents\Keys\mykey.ppk
  
-substituting, of course, the path to your private key (wiki.ppk).  You can load any number of keys this way by listing them one after the other, separated by a space.+substituting, of course, the path to your private key (mykey.ppk).  You can load any number of keys this way by listing them one after the other, separated by a space.
  
 //Special thanks to Barry Wittman for working out the details and creating an initial version of this web page for the Multicore project.// //Special thanks to Barry Wittman for working out the details and creating an initial version of this web page for the Multicore project.//
  
using_subversion_from_windows.txt · Last modified: 2008/03/26 10:00 by jtkorb