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.
- Open the PuTTYgen program.
( don't have PuTTYgen program - click here to download/install )
- For Type of key to generate, select SSH-2 RSA.
( don't see SSH-2 RSA or more option under the Key menu )
- Click the Generate button.
- Move your mouse in the area below the progress bar. When the progress bar is full, PuTTYgen generates your key pair.
- 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)
- 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.
- Right-click in the text field labelled Public key for pasting into OpenSSH authorized_keys file and choose Select All.
- 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
- Open LastPass
- Right bottom corner - click on to Add Item
- Popup appear - click on more items (see circle)
- Click on SSH KEY (see circle)
- Add the info from PuTTY Key Generator to Add ssh key (LastPass)
- add Name
- match the numbers where the info should go (see image below)
- for no 6. setup the date you have setup the PuTTY
- for no 7. attached the zip file of the private & public keys that you have saved it on your PC drive.
- 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
- Open Cyberduck
- Click on Open Connection (see circle)
- Fill in the info marked in numbers
- no 01. choose your connection
- no 02 & 04. add Nickname & Username, this can use the same name.
- no 03. add server name & make sure Port is correct according to your port number
- no 05. find & locate your save file of SSH Keys. ( when you setup your SSH key with PuTTYgen )
And select the private key.ppk
- no 06. add the path to your files
- no 07. optional