Skip to content

Instantly share code, notes, and snippets.

@mgpradeepa
Last active October 18, 2022 05:42
Show Gist options
  • Save mgpradeepa/e28c3f4ee30a8b7a6e7fe1bc66c06aa6 to your computer and use it in GitHub Desktop.
Save mgpradeepa/e28c3f4ee30a8b7a6e7fe1bc66c06aa6 to your computer and use it in GitHub Desktop.
In WINDOWS machines use the following steps
Start putty gen tool in windows
Look at ACTIONS section and choose "Load" button
Browse through the folders to pull the ppk file fo which you need to create a pem file
Key passphrase is optional and cick YES to ignore
From the menu , choose Conversions --> Drop down --> Export OpenSSH Key.
Just say 'Yes' for warning of not entering passphrase
Save the file as <xyz>.pem
In LINUX environments use the following steps
1. If puttygen not installed
sudo apt-get install putty-tools
2. Convert ppk to pem
puttygen server-key.ppk -O private-openssh -o serverpem-key.pem
3. Change permission of the pem file.
chmod 400 serverpem-key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment