Difference between revisions of "Guest RSA key"
(provide key) |
(don't use ~, use full name) |
||
Line 1: | Line 1: | ||
Unfortunely after changing our web server over from Apache to [[Nginx]], we can no longer offer simple HTTP for anonymous read-only access to our Subversion repositories. But you can access anonymously using the RSA key-pair and instructions provided on this page. Alternatively if you already have an RSA key-pair, you can [[contact]] us with your public key requesting it be added to the ''authorized_keys'' file for read-only access. Note that you must still connect using the ''svn'' use not your own user name. | Unfortunely after changing our web server over from Apache to [[Nginx]], we can no longer offer simple HTTP for anonymous read-only access to our Subversion repositories. But you can access anonymously using the RSA key-pair and instructions provided on this page. Alternatively if you already have an RSA key-pair, you can [[contact]] us with your public key requesting it be added to the ''authorized_keys'' file for read-only access. Note that you must still connect using the ''svn'' use not your own user name. | ||
− | This RSA key can be used to access our [http://svn.organicdesign.co.nz Subversion repositories] with read-only access. Copy the text of both the public and private parts below and paste them into files ''' | + | This RSA key can be used to access our [http://svn.organicdesign.co.nz Subversion repositories] with read-only access. First change into your home directory (e.g. '''cd /home/YOURNAME'''). Copy the text of both the public and private parts below and paste them into files '''.ssh/od_rsa.pub''' and '''.ssh/od_rsa''' respectively (''.ssh'' is a hidden directory in your home directory, if it doesn't exist you'll need to create it first). Make sure the private key has mode ''600'' (e.g. use '''chmod 600 .ssh/od_rsa'''). Then add a protocol to your ''tunnels'' section in your '''.subversion/config''' file that matches the existing ''ssh'' tunnel except that it specifies your new key using the ''-i'' option as follows: |
{{code|<pre> | {{code|<pre> | ||
− | od = $SVN_SSH ssh -i | + | od = $SVN_SSH ssh -i /home/YOURNAME/.ssh/od.rsa |
</pre>}} | </pre>}} | ||
Revision as of 14:31, 5 July 2013
Unfortunely after changing our web server over from Apache to Nginx, we can no longer offer simple HTTP for anonymous read-only access to our Subversion repositories. But you can access anonymously using the RSA key-pair and instructions provided on this page. Alternatively if you already have an RSA key-pair, you can contact us with your public key requesting it be added to the authorized_keys file for read-only access. Note that you must still connect using the svn use not your own user name.
This RSA key can be used to access our Subversion repositories with read-only access. First change into your home directory (e.g. cd /home/YOURNAME). Copy the text of both the public and private parts below and paste them into files .ssh/od_rsa.pub and .ssh/od_rsa respectively (.ssh is a hidden directory in your home directory, if it doesn't exist you'll need to create it first). Make sure the private key has mode 600 (e.g. use chmod 600 .ssh/od_rsa). Then add a protocol to your tunnels section in your .subversion/config file that matches the existing ssh tunnel except that it specifies your new key using the -i option as follows:
You can then checkout a repository with the following syntax, and then do any read operations on it as usual.