| | 1 | == Getting an account == |
| | 2 | |
| | 3 | First, you need to send an email to Chad Cantwell (email: chad [at] iomail.org) and request an account. |
| | 4 | |
| | 5 | == ssh configuration == |
| | 6 | |
| | 7 | You can add the following lines to `~/.ssh/config` on your local machine: |
| | 8 | {{{ |
| | 9 | #!sh |
| | 10 | Host gp greenplanet gplogin1.ps.uci.edu gplogin2.ps.uci.edu |
| | 11 | HostName gplogin1.ps.uci.edu |
| | 12 | User YOURGREENPLANETUSERNAME |
| | 13 | HostKeyAlias gplogin1.ps.uci.edu |
| | 14 | HostbasedAuthentication no |
| | 15 | }}} |
| | 16 | and replace `YOURGREENPLANETUSERNAME` by your greenplanet username. |
| | 17 | |
| | 18 | Once this is done, you can ssh green planet by simply doing: |
| | 19 | |
| | 20 | {{{ |
| | 21 | #!sh |
| | 22 | ssh gp |
| | 23 | }}} |
| | 24 | |
| | 25 | == Setting up the password-less ssh == |
| | 26 | |
| | 27 | Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run. |
| | 28 | You need to have a SSH public/private key pair. If you do not, you can create a SSH public/private key pair by typing the following command and following the prompts (no passphrase necessary): |
| | 29 | {{{ |
| | 30 | #!sh |
| | 31 | $your_localhost% ssh-keygen -t rsa |
| | 32 | Generating public/private rsa key pair. |
| | 33 | Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN |
| | 34 | Enter passphrase (empty for no passphrase):RETURN |
| | 35 | Enter same passphrase again:RETURN |
| | 36 | Your identification has been saved in /Users/username/.ssh/id_rsa. |
| | 37 | Your public key has been saved in /Users/username/.ssh/id_rsa.pub. |
| | 38 | }}} |
| | 39 | |
| | 40 | Two files were created: your private key `/Users/username/.ssh/id_rsa`, and the public key `/Users/username/.ssh/id_rsa.pub`. The private key is read-only and only for you, it is used to decrypt all correspondence encrypted with the public key. The contents of the public key need to be copied to `~/.ssh/authorized_keys` on your greenplanet account: |
| | 41 | |
| | 42 | {{{ |
| | 43 | #!sh |
| | 44 | $your_localhost%scp ~/.ssh/id_rsa.pub username@your_remosthost:~ |
| | 45 | }}} |
| | 46 | |
| | 47 | Now on '''Greenplanet''', copy the content of id_rsa.pub: |
| | 48 | |
| | 49 | {{{ |
| | 50 | #!sh |
| | 51 | $your_remosthost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys |
| | 52 | $your_remosthost%rm ~/id_rsa.pub |
| | 53 | }}} |