Changes between Initial Version and Version 1 of greenplanet


Ignore:
Timestamp:
11/17/14 14:24:44 (10 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • greenplanet

    v1 v1  
     1== Getting an account ==
     2
     3First, you need to send an email to Chad Cantwell (email: chad [at] iomail.org) and request an account.
     4
     5== ssh configuration ==
     6
     7You can add the following lines to `~/.ssh/config` on your local machine:
     8{{{
     9#!sh
     10Host 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}}}
     16and replace `YOURGREENPLANETUSERNAME` by your greenplanet username.
     17
     18Once this is done, you can ssh green planet by simply doing:
     19
     20{{{
     21#!sh
     22ssh gp
     23}}}
     24
     25== Setting up the password-less ssh ==
     26
     27Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run.
     28You 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
     32Generating public/private rsa key pair.
     33Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN
     34Enter passphrase (empty for no passphrase):RETURN
     35Enter same passphrase again:RETURN
     36Your identification has been saved in /Users/username/.ssh/id_rsa.
     37Your public key has been saved in /Users/username/.ssh/id_rsa.pub.
     38}}}
     39
     40Two 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
     47Now 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}}}