High Performance Compute Cluster
How to use SSH Keys on SCIAMA
Creating SSH key pairs
Please check out the related article HERE on how to create a new SSH key pair on various operating systems.
Copying/Installing keys onto SCIAMA (with access)
Now that you have created a private and public key you need to copy the public key onto Sciama using your existing access. Use the command :
ssh <username>@login4.sciama.icg.port.ac.uk 'cat ~/new_key.pub >> .ssh/authorized_keys'
You should see output similar to if you log into this login node for the first time:
RSA key fingerprint is SHA256:zELprgvBZmyQRQ5/6/a58e3e660bR3lJZItu18pnZcg.
Are you sure you want to continue connecting (yes/no)? yes
Now try logging into the machine, with:
You will be prompted for your pass phrase:
Last login: Sat Apr 28 17:28:18 2018 from host.somewhere
Now try logging in using your new key … you should now be asked for your passphrase and then successfully being logged in.
Using SSH key agents
If you don’t want to enter the passphrase each time you can start an ssh agent that will do it for you. As an example, on your Linux desktop:
Enter passphrase for $HOME/.ssh/id_rsa:
Every time the agent is restarted (e.g. after a reboot) the keys will need to be re-added.
Other operating systems also provide similar key management software (e.g. PuTTY’s pageant tool).