Home > Solaris 10 > Create SSH Key for Joyent Server

Create SSH Key for Joyent Server

An SSH key consists of a pair of files. One is the private key, which you should never give to anyone. The other is the public key. You will need a public key to log into most machines you provision.

To generate an SSH key in Ubuntu 11, follow these steps.

  1. Enter the following command in the Terminal window.
    gregg@workstation1:~$ ssh-keygen -t rsa

    This starts the key generation process. The -t option specifies what type of SSH key to generate. When you execute this command, the ssh-keygen tool prompts you to indicate where to store the key.

    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/gregg/.ssh/id_rsa):
  2. Press the ENTER key to accept the default.
  3. The ssh-keygen utility prompts you for a passphrase. Enter a phrase you can remember. You can use a key without a passphrase, but this is not recommended.
    Enter passphrase (empty for no passphrase):
  4. You need to enter the passphrase a second time to continue.
    Enter same passphrase again:

    After you confirm the passphrase, the command generates the key pair

    Your identification has been saved in /home/gregg/.ssh/id_rsa.
    Your public key has been saved in /home/gregg/.ssh/id_rsa.pub.
    The key fingerprint is:
    ae:89:72:0b:85:da:5a:f4:7c:1f:c2:43:fd:c6:44:38 gregg@workstation1
    The key's randomart image is:
    +--[ RSA 2048]----+
    |                 |
    |         .       |
    |        E .      |
    |   .   . o       |
    |  o . . S .      |
    | + + o . +       |
    |. + o = o +      |
    | o...o * o       |
    |.  oo.o .        |

Your private key is saved to a file named id_rsa in the .ssh directory.

Never share your private key with anyone!

Your public key is saved to a file named id_rsa.pub. This file contains the information you will add to your JoyentCloud account.

cat ~/.ssh/id_rsa.pub

Categories: Solaris 10
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: