Generating an SSH Key using PuttyGen

The following article will guide you through the steps in generating an SSH KEY, saving the information in Lastpass and Setting up an SFTP connection in Cyberduck.

Generating an SSH Key

To generate an SSH key with PuTTYgen, follow the steps below.

  1. Open the PuTTYgen program.
    ( don't have PuTTYgen program - click here to download/install )
  2. For Type of key to generate, select SSH-2 RSA.
    ( don't see SSH-2 RSA or more option under the Key menu )
  3. Click the Generate button.
  4. Move your mouse in the area below the progress bar. When the progress bar is full, PuTTYgen generates your key pair.
  5. Type a passphrase in the Key passphrase field. Type the same passphrase in the Confirm passphrase field. You can use a key without a passphrase, but this is not recommended. It is vital that you save this in a secure manner as this will be your master password (passphrase)
  6. Click the Save private key button to save the private key.  You must save the private key. You will need it to connect to your machine.
  7. Right-click in the text field labelled Public key for pasting into OpenSSH authorized_keys file and choose Select All.
  8. Right-click again in the same text field and choose Copy.

Save your SSH key info in LastPass

Don't have LastPass - click here to download/install

  1. Open LastPass
  2. Right bottom corner - click on    to Add Item
  3. Popup appear - click on more items (see circle)

  4. Click on SSH KEY (see circle)

  5. Add the info from PuTTY Key Generator to Add ssh key (LastPass)
    1. add Name
    2. match the numbers where the info should go (see image below)
    3. for no 6. setup the date you have setup the PuTTY
    4. for no 7. attached the zip file of the private & public keys that you have saved it on your PC drive.

  6. Don't forget to SAVE

Setup SFTP Connection in Cyberduck

When setting up the SFTP connection you will be provided the following information: username, host, path and port. Use your SSH KEY and Passphrase as the logins.

Don't have Cyberduck - click here to download/install

  1. Open Cyberduck
  2. Click on Open Connection (see circle)

  3. Fill in the info marked in numbers
    1. no 01. choose your connection
    2. no 02 & 04. add Nickname & Username, this can use the same name.
    3. no 03. add server name & make sure Port is correct according to your port number
    4. no 05. find & locate your save file of SSH Keys. ( when you setup your SSH key with PuTTYgen )
      And select the private key.ppk
    5. no 06. add the path to your files
    6. no 07. optional