Creating ssh keys for MAC/Linux

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:
  1. Open a terminal
  2. Type ssh-keygen -t rsa
  3. 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
  4. Enter passphrase (can be empty for no passphrase):
  5. Copy the public key
  6. ssh NETID@athene-login.hpc.fau.edu
  7. Enter the password of your netid
  8. Once logged in, type in the following commands

    mkdir -p .ssh
    chmod 700 .ssh
    vim .ssh/authorized_keys
  9. Save by doing :wq! . You may need to press esc if it mentions insert in the bottom.
  10. Next edit the permissions with the command:

    chmod 600 .ssh/authorized_keys
  11. Type cd .ssh
  12. 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)
  13. Paste the copied public key at the end of the file and save it. (Do not delete anything in authorized_keys).
  14. The next time you ssh, you will not need to authenticate from Duo.
  15. 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

 

 

Details

Details

Article ID: 141587
Created
Tue 9/6/22 2:30 PM
Modified
Wed 7/9/25 5:37 PM