- 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
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
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-agentand the local X server. The agent and X11 settings here are equivalent to the
- Run the
$ 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
ssh-agentprocess 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/configon jasmin. Add the following lines:
host jasmin-sci* ForwardAgent yes ForwardX11 yes
- Add e-mail addresses, one per line, to
- Connect to science server and check X forwarding:
$ ssh jasmin-sci1 $ gnuplot plot x q
plot xshould throw up an X window with a simple line plot.