We strongly recommend that you provide a passphrase for your key-pair. Should someone gain access to your private key they could log in to systems as you; a passphrase on your SSH key passphrase provides a secondary level of security. Note that your passphrase is only used to protect your SSH key, so it is never transmitted. Also, there are programs available (called SSH agents) that can securely manage your keys and passphrases and eliminate the need to type in your passphrase each time you log into a system (see below for more details).
Once you have generated a key pair you need to add the public key to the server. Here are two methods to do it:
In the following examples, replace "<user>" with your Pawsey username, e.g. "firstname.lastname@example.org"
ssh-copy-id -i ~/.ssh/pawsey_rsa_key.pub user@magnus<user>@magnus.pawsey.org.au
We will use a combination of SSH and the Linux command "cat" to paste the key to the server. You can use the following command:
cat ~/.ssh/pawsey_rsa_key.pub | ssh user@magnus<user>@magnus.pawsey.org.au "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"