Summary
SSH keys allow for improved access to Research Computing clusters by bypassing the need for 2Factor authentication. Adding your public key to the cluster will allow tools such as ssh, putty and others to more quickly and easily connect.
Body
SSH keys allow for improved access to Research Computing clusters by bypassing the need for 2Factor authentication. Adding your public key to the cluster will allow tools such as putty and others to more quickly and easily connect.
For MAC/Linux:
- Open a terminal
- Type ssh-keygen -t rsa
- Enter file in which to save the keys (/home/demo/.ssh/id_rsa):
you can just hit enter to save it in the default location
- Enter passphrase (can be empty for no passphrase):
- Copy the public key
- ssh NETID@athene-login.hpc.fau.edu
- Enter the password of your netid
-
Once logged in, type in the following commands
mkdir -p .ssh
chmod 700 .ssh
vim .ssh/authorized_keys
- Save by doing :wq! . You may need to press esc if it mentions insert in the bottom.
-
Next edit the permissions with the command:
chmod 600 .ssh/authorized_keys
- Type cd .ssh
- Use the editor of your choice (nano (more user friendly), vim, vi ) and edit authorized_keys
ex. vi authorized_keys (do not to delete anything in this file)
- Paste the copied public key at the end of the file and save it. (Do not delete anything in authorized_keys).
- The next time you ssh, you will not need to authenticate from Duo.
- Go here for next steps on how to ssh to Athene using Mac/Linux
If you received an error where ~/.ssh/id_rsa has a permission issue in your personal desktop, enter
chmod 600 ~/.ssh/id_rsa