Creating ssh keys for MAC/Linux

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 Filezilla, ssh, 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 to netid@koko-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. Next edit the permissions with the command:

    chmod 600 .ssh/authorized_keys
  10. Type cd .ssh
  11. Use the editor of your choice (vi, vim, nano (more user friendly)) and edit authorized_keys
    ex. vi authorized_keys (do not to delete anything in this file)
  12. Paste the copied public key at the end of the file and save it. (Do not delete anything in authorized_keys).
  13. The next time you ssh, you will not need to authenticate from Duo.
  14. Go here for next steps on how to ssh to koko using Mac/Linux
100% helpful - 1 review
Print Article

Details

Article ID: 141587
Created
Tue 9/6/22 2:30 PM
Modified
Wed 7/10/24 9:28 AM