Getting started with JASMIN

Lesson 1: Connecting to JASMIN

Transcript

  • Start by setting the configuration in $HOME/.ssh/config. Insert the following entries :
        
        host jasmin-login1
            hostname jasmin-login1.ceda.ac.uk 
      
        host jasmin-xfer1
            hostname jasmin-xfer1.ceda.ac.uk
        
        host jasmin*
            User <your JASMIN user name>
            ForwardAgent yes
            ForwardX11 yes
        
        
    The order in the above is important. The wild card entry for host jasmin* must come after the login and xfer servers. The first two entries above set up aliases, so that you do not need to type .ceda.ac.uk every time.

    The third entry sets the user name to use for connecting to any system who's name begins with the text "jasmin", and forwards the connections to the ssh-agent and the local X server. The agent and X11 settings here are equivalent to the -X and -Y.


  • Run the ssh-agent;
        
        $ eval ssh-agent $SHELL
        $ ssh-add .ssh/id_rsa.jasmin
        Enter passphrase for .ssh/id_rsa.jasmin: 
        < enter passphrase for private ssh key >
        $ ssh-add -l
        
        
    The first line attaches an ssh-agent process to a new shell instance. The second line loads the private ssh key into the agent and requests the passphrase needed to unlock it. The final line lists the "fingerprint" of all the keys loaded into the agent.

  • Connect to jasmin
        
        ssh jasmin-login1
        
        
  • edit .ssh/config on jasmin. Add the following lines:
        
        host jasmin-sci*
            ForwardAgent yes
            ForwardX11 yes
        
        
    This will automatically refer authentication requests to the ssh-agent used to connect to jasmin, and forward the X server connection.

  • Add e-mail addresses, one per line, to $HOME/.forward file
  • Connect to science server and check X forwarding:
        
        $ ssh jasmin-sci1
        $ gnuplot
        plot x
        q
        
        
    The gnuplot command plot x should throw up an X window with a simple line plot.