If you have a Windows computer and need a private key to get access to an AWS EC2 instance, this article shows you how to create one using the popular PuTTY program.
- Download PuTTY a SSH and Telnet client for Windows
- Ensure you have your .pem file which you will have downloaded when you set up your key pair when creating your EC2 instance
Creating the .ppk file
Step 1 – Open PuTTYgen, you will see the PuTTY Key Generator window, click on ‘Load’ to upload the .pem file. Don’t click on ‘Generate’ or change any of the other settings.
Step 2 – Select the .pem file from the Windows file explorer and upload and you should get the following message
Step 3 – Save the key by clicking on the ‘Save private key’ button
Step 4 – Name the file and you’re done!