wiki:greenplanet

Version 1 (modified by Mathieu Morlighem, 10 years ago) ( diff )

--

Getting an account

First, you need to send an email to Chad Cantwell (email: chad [at] iomail.org) and request an account.

ssh configuration

You can add the following lines to ~/.ssh/config on your local machine:

Host gp greenplanet gplogin1.ps.uci.edu gplogin2.ps.uci.edu
  HostName gplogin1.ps.uci.edu
  User YOURGREENPLANETUSERNAME
  HostKeyAlias gplogin1.ps.uci.edu
  HostbasedAuthentication no

and replace YOURGREENPLANETUSERNAME by your greenplanet username.

Once this is done, you can ssh green planet by simply doing:

ssh gp

Setting up the password-less ssh

Once you have the account, you can setup a public key authentification in order to avoid having to input your password for each run. 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):

$your_localhost% ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/username/.ssh/id_rsa):RETURN
Enter passphrase (empty for no passphrase):RETURN
Enter same passphrase again:RETURN
Your identification has been saved in /Users/username/.ssh/id_rsa.
Your public key has been saved in /Users/username/.ssh/id_rsa.pub.

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:

$your_localhost%scp ~/.ssh/id_rsa.pub username@your_remosthost:~

Now on Greenplanet, copy the content of id_rsa.pub:

$your_remosthost%cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
$your_remosthost%rm ~/id_rsa.pub
Note: See TracWiki for help on using the wiki.