Generating ssh keys enables you to authenticate on O2 compute nodes without typing your password. Public and private keys are required for running MPI jobs, or submitting Slurm jobs that request X11 forwarding with the
Host keys for all
O2 compute nodes are already listed in
/etc/ssh/ssh_known_hosts, so there is no need for you to add them to your
First, create your public and private key combination on O2:
Copy the public key to your authorized_keys file:
Since the default new file permission will prevent these keys from being read by
ssh, you will need to change it, and possibly also the parent .ssh directory.
Now, you should be able to ssh to o2 without password, Even after doing all the above steps, you're still asked for password when logging in then make sure your home directory has no group write permissions.
Note 1: Since your private key is not protected with a password, only use this key when working with O2 nodes. Do not use the public key for systems outside O2 without protecting it with a password.
Note 2: This needs to be done only one time.
Note 3: If you have already done the above steps in Orchestra (our cluster that has been retired) you should not need to repeat this step in O2 since the /home filesystem is the same.