On Windows, Mac and Linux systems you can generate an SSH key pair using the ssh-keygen command. The instructions below will generate a key without a password and will store it in the default file locations. Information about providing/using a key password, selecting a different file location, and other options is available online.

Jetstream2 requires that your SSH key be generated using the RSA algorithm, so you must specify the -t rsa option when running ssh-keygen Line 1. The program will prompt for the file location in which to store the key and you can press Enter to select the default location Line 3. The default or user-specified file location is for the private key and the public key will be saved in a file in the same directory and with the same name, plus the extension .pub. When the command asks for a passphrase, you can press Enter twice to skip that option. Lines 4-5


train01> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/train01/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /train01/.ssh/id_rsa.
Your public key has been saved in /train01/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:rtNRck20z2YSYBWG41LvcXzWeFYTXwK3ekXft1pgYzE train01@computer
The key's randomart image is:
+---[RSA 2048]----+
|          o+*Eo.+|
|         .+o.oo=*|
|         o =o*..X|
|        o + *=*.O|
|        S= .oo*B |
|       ..   .=o  |
|       ...   .   |
|      ...        |
|      ..         |
+----[SHA256]-----+
 
©   Cornell University  |  Center for Advanced Computing  |  Copyright Statement  |  Inclusivity Statement