Converting a PEM Key to a PPK Key

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating an EC2 Instance
lock
Converting a PEM Key to a PPK Key
lock
Connecting to an Instance using SSH
lock
Getting the EC2 Instance Metadata
live-help Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

Note: This step is only required for Windows users.

Connecting to a running Linux instance using an SSH client requires a public/private key pair. Windows does not ship with an SSH client. PuTTY is a common SSH client, which is free to download and use. However, PuTTY does not support the PEM (Privacy Enhanced Mail) key format. The key downloaded from AWS is PEM format, so it must be converted to PPK (PuTTY Private Key). Fortunately, PuTTYgen converts PEM key files to PPK format. PuTTYgen is also free to download and use.

 

Instructions

1. If you do not already have PuTTYgen, download the PuTTYgen executable from the following link: PuTTYgen.

NoteCloud Academy enterprise accounts also provide an enterprise bridge feature that allows you to bypass corporate network and software installation policies that may otherwise prevent you from completing this lab step.

 

2. Start PuTTYgen. (no installation is required)

 

3. Click Load and browse to the location of the private key file that you want to convert (for example keypair.pem). By default, PuTTYgen displays only files with a .ppk extension. You'll need to change the drop-down adjacent to File name to All Files in order to see your PEM file:

 alt

 

4. Select your .pem key file and click Open. PuTTYgen displays the following message:

alt

 

5. Click OK. PuTTYgen displays a dialog with information about the key you loaded, including the public key and the fingerprint.

 

6. Click Save private key to save the key in PuTTY's format. Do NOT select a passphrase. (Additional security is not required.) Be sure to save your private key somewhere secure.

 

Summary

Now you are ready to use PuTTY for connecting to the running Linux instance created in a previous Lab Step. The PuTTY SSH client will use the key pair format it requires for the private key to connect to the instance. The running Linux instance already has the public key on it.