How to generate SSH Key Pair?

To access interactive login nodes, you will need to have SSH Keypair. The procedure for creating a key pair varies depending on your operating system and preferred SSH client.

Linux and MacOS X

Open terminal and at the shell prompt, type the following command:

$ ssh-keygen -t rsa -b 4096 -C “your_email@example.com”

The ssh-keygen program will ask you for the location of the key file. You can optionally specify a passphrase to protect your key.

$ ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/admin/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/admin/.ssh/id_rsa.
Your public key has been saved in /Users/admin/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:mmfgSX2aapScScvkDLDaJ1FFBBncRgpQL/hczrSEjsk your_email@example.com
The key’s randomart image is:
+—[RSA 4096]—-+
|.oo.oX= |
| ..++.o |
|. o+*. |
|.*oB..o. |
|oE+.+Oo=S . |
|. o .o@= + |
| o .= = |
| .+ |
| .. |
+—-[SHA256]—–+

Remember the location to which your public and private key were saved. You will need to send public key content to Tier2 administrators, while private key is needed to access the cluster.

 

Windows (using Putty)

On. your Windows machine, download Putty from https://www.putty.org.

Go to Windows Start menuAll ProgramsPuTTYPuTTYgen.

Click Generate;

In the next screen, click. “Save private key” and  “Save public key”

Remember the location to which your public and private key were saved. You will need to send public key content to Tier2 administrators, while private key is needed to access the cluster.