Difference between revisions of "Guest RSA key"
(access OD repo using gues account over ssh) |
(Change source-code blocks to standard format) |
||
(10 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | This | + | {{message|icon=[[File:Legacy.svg|75px]]|text=This complicated process is no longer necessary now as we have a publicly accessible mirror of our code available on GitHub at [https://github.com/OrganicDesign github.com/OrganicDesign].}} |
− | + | {{info|Unfortunately 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'' user not your own user name.}}{{note|Windows users will unfortunately have a lot more difficulty dealing with Subversion over SSH, but you can do it with [http://tortoisesvn.tigris.org/ Tortois] and [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY]. Tortois works out of the box with PuTTY by using the PuTTY session name in the SVN repo URL instead of the server hostname. A good tutorial covering the set up of PuTTY with RSA keys can be found [http://www.howtoforge.com/ssh_key_based_logins_putty here].}} | |
− | |||
− | |||
− | Then | + | 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: |
− | + | <source> | |
+ | od = $SVN_SSH ssh -i /home/YOURNAME/.ssh/od.rsa | ||
+ | </source> | ||
+ | |||
+ | |||
+ | You can then checkout a repository with the following syntax, and then do any read operations on it as usual. | ||
+ | <source> | ||
svn checkout svn+od://svn@organicdesign.co.nz/tools | svn checkout svn+od://svn@organicdesign.co.nz/tools | ||
− | </ | + | </source> |
== Public key == | == Public key == | ||
− | + | <source lang="tt"> | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW9hr8LtBpO39H1jiOpAV3PauaucvSgwgo4lNjbjZm/rHqEYeDrxXlN9xI1VshH0EJtkzqcXMFFcahlDaD9y0hNDqLsYh55vZY/wXrMk198q+NDiz9AfNLFvP9dKGDdBVXkm96qgpyF2uctZ8m4PoPtvl6vR7Le+pCpV3fO18MIFXAMlmYy1G5RUisHslGG4HeUSI3dS2DWE5K7DHwKADlDulZsNTPIqdSDl5UsDpGS5X4KK8khqbcsY5f/9Gy3PQvUXh4HXSPTYD+2fdryQoL43PNMPQuG8T10s3cXE4cwyNYnhWK3BvDY9t2NEje+J9Stk4f7LhL3jZutA/Rk9k7 guest@anywhere | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW9hr8LtBpO39H1jiOpAV3PauaucvSgwgo4lNjbjZm/rHqEYeDrxXlN9xI1VshH0EJtkzqcXMFFcahlDaD9y0hNDqLsYh55vZY/wXrMk198q+NDiz9AfNLFvP9dKGDdBVXkm96qgpyF2uctZ8m4PoPtvl6vR7Le+pCpV3fO18MIFXAMlmYy1G5RUisHslGG4HeUSI3dS2DWE5K7DHwKADlDulZsNTPIqdSDl5UsDpGS5X4KK8khqbcsY5f/9Gy3PQvUXh4HXSPTYD+2fdryQoL43PNMPQuG8T10s3cXE4cwyNYnhWK3BvDY9t2NEje+J9Stk4f7LhL3jZutA/Rk9k7 guest@anywhere | ||
− | </ | + | </source> |
== Private key == | == Private key == | ||
− | + | <source> | |
-----BEGIN RSA PRIVATE KEY----- | -----BEGIN RSA PRIVATE KEY----- | ||
MIIEpAIBAAKCAQEA1vYa/C7QaTt/R9Y4jqQFdz2rmrnL0oMIKOJTY242Zv6x6hGH | MIIEpAIBAAKCAQEA1vYa/C7QaTt/R9Y4jqQFdz2rmrnL0oMIKOJTY242Zv6x6hGH | ||
Line 44: | Line 48: | ||
1Cw0f327FZiuEjGVnqIqKXA1/YkSPF0eq4bbCrmXAz5BR+Ni7YFKCw== | 1Cw0f327FZiuEjGVnqIqKXA1/YkSPF0eq4bbCrmXAz5BR+Ni7YFKCw== | ||
-----END RSA PRIVATE KEY----- | -----END RSA PRIVATE KEY----- | ||
− | </ | + | </source> |
+ | |||
+ | == See also == | ||
+ | *[[Configure SVN]] | ||
+ | *[[11 July 2013]] ''- our news item about setting up our GitHub mirror'' | ||
+ | [[Category:Legacy]] |
Latest revision as of 18:11, 22 May 2015
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:
od = $SVN_SSH ssh -i /home/YOURNAME/.ssh/od.rsa
You can then checkout a repository with the following syntax, and then do any read operations on it as usual.
svn checkout svn+od://svn@organicdesign.co.nz/tools
Public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW9hr8LtBpO39H1jiOpAV3PauaucvSgwgo4lNjbjZm/rHqEYeDrxXlN9xI1VshH0EJtkzqcXMFFcahlDaD9y0hNDqLsYh55vZY/wXrMk198q+NDiz9AfNLFvP9dKGDdBVXkm96qgpyF2uctZ8m4PoPtvl6vR7Le+pCpV3fO18MIFXAMlmYy1G5RUisHslGG4HeUSI3dS2DWE5K7DHwKADlDulZsNTPIqdSDl5UsDpGS5X4KK8khqbcsY5f/9Gy3PQvUXh4HXSPTYD+2fdryQoL43PNMPQuG8T10s3cXE4cwyNYnhWK3BvDY9t2NEje+J9Stk4f7LhL3jZutA/Rk9k7 guest@anywhere
Private key
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA1vYa/C7QaTt/R9Y4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0O
y+TDPgtbffF3bioR+oXPo6YFUooU/HLynzOxHOdBwEPkAUEptTnJqU9uTJC1uPe3
0J4y846b3Qfa8XeeoUNcLwsgTE2NMdzACSZyr0WolLVKU06d4iFJJFH/Z3XMcslN
xffnlzrHXulQ35oSAcdfw98CgYEAnkpHiseCxV8QZ5iI3FYT2TsN4MzwTTjTjW8D
08/AJ+vx5BCWYIIHCucvO1OcrtpGV9aOOSjzAlV0vg9F2U8cMsAHtBkSkoVOViox
ip7kBQV5JP+ueQhgZI7GgD3RYVKLy34Hsivl39O7NUUlSHkp/oN9v4UOnjquGISH
1Y9regECgYB+iewKcWKKocHZxdfyEs1/AoAO5hu1fGyhBByd3VRRIplFPigFt3g6
dqh13UcDg+JHgkUDzDhG+14BHrOUmiuIcYMbKTGdx7Z1ulPG31QFnc0h5G4W29o9
1Cw0f327FZiuEjGVnqIqKXA1/YkSPF0eq4bbCrmXAz5BR+Ni7YFKCw==
-----END RSA PRIVATE KEY-----
See also
- Configure SVN
- 11 July 2013 - our news item about setting up our GitHub mirror