Changes between Version 1 and Version 2 of aci


Ignore:
Timestamp:
07/18/17 10:36:09 (8 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • aci

    v1 v2  
    33New users have to ask Byron
    44
     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
    525== Password-less ssh ==
    626
     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 already have one, you can skip their creation described below. 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}}}
    739
     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_remotehost:~
     45}}}
     46
     47Now on '''Greenplanet''', copy the content of id_rsa.pub:
     48
     49{{{
     50#!sh
     51$your_remotehost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
     52$your_remotehost%rm ~/id_rsa.pub
     53}}}
    854
    955== Environment ==