Versions Compared

Key

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

...

Excerpt
nameConfigure SSH Keys on your Linux Box
  1. a. Check to see if you have a .ssh directory already created on your system. If it shows up in the list, skip step b.

    Code Block
    cd ~
    ls -lah

    b. If your .ssh directory does not exist in the list use ssh-keygen to create the folder and set permissions appropriately:

    Code Block
    ssh-keygen -t rsa

    Use the default location to store the key by hitting Enter. A key pair will be generated.

    c. You will then be asked to create a passphrase. If you would like to create one, put that in now, and make note of it, since it will be required later. Otherwise, hit Enter to accept the default with no passphrase.

    d. Unzip the files associated with your login to your .ssh folder:

    Code Block
    unzip <username>.zip -d ~/.ssh/
  2. e. Test your configuration. Open up a new terminal/command line window and log into <cluster>. If If configured properly, you will be logged in automatically, and will not be prompted for a password (first factor), nor second factor authentication for login.

Note: If you run into permissions errors on the key files (usually errors will take the form of something similar to: "permission 0### too open") we recommend running the following commands then reattempting to ssh using your key files.

Code Block
chmod 0600 -R ~/.ssh              #sets appropriate permissions for the .ssh private keys 
ssh-add                           #configures ssh agent for certs when not natively supported