Setting up SSH key based access to Apocrita¶
SSH keys allow secure, password-less access to remote systems such as Apocrita. They are very easy to set up and provide a greater level of security than using a password, while being convenient too.
Generating an SSH key-pair provides you with a public and a private key which are two files containing long character strings. You can place the public key on any server, and then unlock it by connecting to it from the computer that has the private key on it. If the two keys match up then you are given access to the remote system without the need for a password. Although it is possible to create a key-pair without a passphrase you should increase security even more by protecting the private key with a passphrase.
Never share your private key
Your private key is the part of the key pair that identifies you as yourself. Even if it is passphrase protected you should not share this file with anyone.
If you do not use the default location for keys please ensure that your key is saved somewhere that is protected under your user account on that machine.
Linux How To¶
Open a terminal:
# Generate Key ssh-keygen # Copy key to Apocrita ssh-copy-id USERNAME@login.hpc.qmul.ac.uk # You can now login with your key ssh USERNAME@login.hpc.qmul.ac.uk
macOS How To¶
Recent versions of macOS have the ssh-copy-id utility so you can use the Linux How To above.
Windows How To¶
MobaXterm is the supported method of access from Windows.
Open MobaXterm and follow the Linux How To above.