...
The following steps should be performed on the machine from which you typically SSH into HPC and you should configure the key on any computer you ssh to the HPC from. Further directions for configuration then depend on your preferred SSH client from that machine.
Directions for Windows, MacOS, an Linux are available below. Expand the section associated with the operating system on your local computer from which you plan to ssh into the cluster.
Device Configuration
Windows Specific Instructions
Expand |
---|
title | Windows Instructions |
---|
|
Insert excerpt |
---|
| Setting Up Password-Free SSH Keys on Windows Clients |
---|
| Setting Up Password-Free SSH Keys on Windows Clients |
---|
name | Windows Specific Instructions |
---|
nopanel | true |
---|
|
|
Mac Specific Instructions
Expand |
---|
|
Unzip the files associated with your login. Open your terminal ( → → → or hit keys) Confirm you’re in your home directory by changing directories to your home with the following command: cd ~ List the contents (including hidden items) of your home directory with the following command: ls -lah If you have a .ssh directory, it will be in this list. If you don’t have one, you will need to create one. To create a .ssh directory using the terminal run following command: ssh-keygen -t rsa . This will begin the key generation process. The utility will ask you where to store the key. To use the default location, leave this blank and hit Enter. A key pair will now be generated and output will look similar to the following screenshot:
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. Assuming the files you downloaded from <onDemand> were downloaded and extracted to your Downloads folder, copy your extracted files to your ssh folder with: cp ~/Downloads<username>/* ~/.ssh If your key has been configured properly, when you open a terminal and log into the cluster, you will be logged in automatically, and will not be prompted for a password (first factor), nor second factor authentication for login.
|
Linux Specific Instructions
Expand |
---|
|
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. 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/ |
e. Test configuration. Open up a new terminal/command line window and log into <cluster>. 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. |
...