How to generate OpenSSH-compatible Keys for use with PuTTY and using PuTTY to access CloudSigma’s cloud using SSH?

0
0

How to correctly use PuttyGen to generate an SSH key to use with the CloudSigma webapp?

Putty is a popular SSH client for Windows, allowing Windows users secure SSH access to Linux VMs running on CloudSigma’s cloud. You can download PuTTY and PuTTYgen here:

Generating a set of RSA keys with PuTTYgen to securely access CloudSigma’s cloud:

    1. Start PuTTYgen
    2. Click the Generate button
    3. Move your mouse pointer around randomly in the blank area of the Key section below the progress bar until the progress bar is full. This will ensure the key is as random and unique as possible. When the progress bar completes, a public / private key pair has been generated.

Puttygen

  1. In the Key comment field, enter any comment that will help you identify this key pair. Examples include your e-mail address, nickname etc. The key comment is particularly useful in the event you end up creating more than one key pair.
  2. Optionally, type a passphrase in the Key passphrase field then re-type the same passphrase in the Confirm passphrase field. Please note that should you choose to complete this step, you will not be able to use your keys for automated processes, as you will be prompted to enter this phrase each time the key is used.
  3. Click the Save public key button and save your new public key.
  4. Click the Save private key button and choose whatever filename you’d like. You can save it in the same location as the public key, but it should be a location that only you can access and that you will NOT lose! If you lose your keys and have disabled username/password logins, you will no longer be able log in!

Adding PuTTYgen generated public / private key pairs to your CloudSigma account:

Now that we have created our public / private key pair, we can proceed to upload it to your CloudSigma account. Please note that should you ever lose your public key, simply load your private key in Puttygen and it will be displayed to you.

    1. Please do NOT click on ‘save public key’, as Puttygen uses a different format to OpenSSH. Thankfully, Puttygen does display the OpenSSH-compatible public key in the field labeled ‘Public key for pasting into OpenSSH’. Select all the text in this field and copy it to clipboard.

    1. Go back to the CloudSigma SSH key screen and paste this into the ‘public SSH key’ field. Click save.

    1. Open Putty and expand Connection / SSH / Auth and under ‘Private key file for authentication’, click browse and locate the Private Key (.ppk) that Puttygen created. In order to avoid having to manually add your SSH private key to Putty every time it launches, go back to the ‘Session’ menu, give this session a name and click save.

Marked as spam
Asked on August 8, 2018 10:27 am
904 views