Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.



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. ""

Method 1

Code Block
ssh-copy-id -i ~/.ssh/ user@magnus<user>

Method 2

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:

Code Block
cat ~/.ssh/ | ssh user@magnus<user> "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"