Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save brian-tex/57e8873ea8b91119583fadb444822ba2 to your computer and use it in GitHub Desktop.

Select an option

Save brian-tex/57e8873ea8b91119583fadb444822ba2 to your computer and use it in GitHub Desktop.

Introduction

This page lists the steps to convert an OpenSSL-generated SSH private key into a .ppk formatted file suitable for use with PuTTY. This process enables seamless integration between SSH key formats, allowing users to leverage PuTTY's functionality and compatibility.

Workflow Prerequisites

  • This workflow requires a Windows computer as PuTTY is a Windows-only application.
  • A private ssh key.

Install Putty

  1. Go to https://www.putty.org/
  2. Click the Download PuTTY button.
  3. Click the 64-bit PuTTY .msi file download link.
  4. Save the installer to your computer.
  5. Run the installer.

Convert your SSH key into .ppk Format

  1. Open the PuTTY Key Generator application.
    1. Select the ECDSA parameter (at the bottom).
  2. Change the Number of bits in a generated key textbox from the default of nistp256 to nistp521.
  3. Click the Load button.
  4. Browse to your existing private ssh key on your computer and click Open.
  5. Type in the passphrase for your ssh key and click OK.
  6. Click Save private key.
  7. Name your private ssh key with a naming convention that you will recognize (e.g. johnny_private).
  8. Select a private directory to save your private key to that isn't shared on the network or with other users.
  9. Click Save.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment