Creating a new Key pair in Mac OS X or Linux

ssh-keygen is a program that can be found on Mac, Linux, and other UNIX-based operating systems. Run the following commands on your home computer:

  1. Generate an RSA private key using ssh-keygen.
    • If you’re using Linux or Mac OS X, open your terminal and run the following command under your username:
    [local]$ ssh-keygen -t rsa
    This creates a public/private keypair of the type (-t) rsa.
    Generating a public/private rsa key pair.
    Enter the file in which you wish to save they key (i.e., /home/username/.ssh/id_rsa):
    Once the keypair is created, you are prompted to enter the following items.
  2. Click Enter on your keyboard to continue.
    Enter a passphrase (leave empty for no passphrase).
  3. Click Enter on your keyboard to continue.
    Enter same passphrase again:
  4. Click Enter on your keyboard to continue.
  5. When finished, click Enter on your keyboard.
    The following message appears:
    Your identification has been saved in /home/username/.ssh/id_rsa
    Your public key has been saved in /home/username/.ssh/
    The key fingerprint is:
    The key’s randomart image is:
    +--[ RSA 2048]----+
    | ..+**B.o++o     |
    |  . o+==o. o     |
    |    . .oo.=      |
    |      . +E+ .    |
    |        S .      |
    |                 |
    |                 |
    |                 |
    |                 |
  6. You can view the new private and public key by running the following:
    [local]$ ls -la ~/.ssh/
  7. Finally, import the public key into your DreamCompute dashboard.

Did this article answer your questions?

Article last updated .