Changes between Version 4 and Version 5 of GiB-tips


Ignore:
Timestamp:
10/05/12 13:29:52 (12 years ago)
Author:
Vic Thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GiB-tips

    v4 v5  
    44GENI-in-a-Box creates an account for user 'alice' on the virtual machines created for your slice.  You can add additional accounts on these virtual machines; the following steps show how you can add an account for user 'chris':
    55     1. Create a public-private key-pair for Chris using the command {{{ssh-keygen -t rsa}}}.  The public key created ({{{chris.pub}}}) must be moved to the directory {{{~/.gcf}}} and the private key to {{{~/.ssh}}}.  In the example below we used an empty passphrase i.e. hit <return> on the prompt for a passphrase.
    6      {{{
    7      $ ssh-keygen -t rsa
    8      Generating public/private rsa key pair.
    9      Enter file in which to save the key (/home/gibuser/.ssh/id_rsa): chris
    10      Enter passphrase (empty for no passphrase):
    11      Enter same passphrase again:
    12      Your identification has been saved in pat.
    13      Your public key has been saved in chris.pub.
    14      The key fingerprint is:
    15      26:1a:48:91:bb:94:82:b3:83:ea:4e:e2:f7:95:00:08 gibuser@GiB
    16      The key's randomart image is:
    17      +--[ RSA 2048]----+
    18      |E ..             |
    19      |. o.             |
    20      |...+             |
    21      |+.+..            |
    22      |.=..... S        |
    23      |+ .  o.o.        |
    24      |oo  .  o         |
    25      |=  .  .          |
    26      |o+. ..           |
    27      +-----------------+
    28      $ mv chris.pub ~/.gcf
    29      $ mv chris ~/.ssh
    30      $
    31      }}}
     6{{{
     7$ ssh-keygen -t rsa
     8Generating public/private rsa key pair.
     9Enter file in which to save the key (/home/gibuser/.ssh/id_rsa): chris
     10Enter passphrase (empty for no passphrase):
     11Enter same passphrase again:
     12Your identification has been saved in pat.
     13Your public key has been saved in chris.pub.
     14The key fingerprint is:
     1526:1a:48:91:bb:94:82:b3:83:ea:4e:e2:f7:95:00:08 gibuser@GiB
     16The key's randomart image is:
     17+--[ RSA 2048]----+
     18|E ..             |
     19|. o.             |
     20|...+             |
     21|+.+..            |
     22|.=..... S        |
     23|+ .  o.o.        |
     24|oo  .  o         |
     25|=  .  .          |
     26|o+. ..           |
     27+-----------------+
     28$ mv chris.pub ~/.gcf
     29$ mv chris ~/.ssh
     30$
     31}}}
    3232
    3333     2.  Make the following changes to the file {{{~/.gcf/omni_config}}}:
    3434         1. Look for the string {{{users =}}} in the file {{{~/.gcf/omni_config}}} and add Chris to the list of users:
    35          {{{
    36          users = Alice, Chris
    37          }}}
     35{{{
     36users = Alice, Chris
     37}}}
    3838         2. Look for the section {{{# Define users here.}}} and add the following lines to that section:
    39          {{{
    40          [Chris]
    41          urn=urn:publicid:IDN+geni.net:gpo:gcf+user+chris
    42          keys=~/.gcf/chris.pub
    43          }}}
     39{{{
     40[Chris]
     41urn=urn:publicid:IDN+geni.net:gpo:gcf+user+chris
     42keys=~/.gcf/chris.pub
     43}}}
    4444
    4545All accounts will have the same password, stored in the file ~/.gcf/passwords of the GENI-in-a-Box account you are logged into when you start up GENI-in-a-Box.