How to convert PEM file to PPK using PuTTYgen in Ubuntu

I created an EC2 instance for AWS. I want to connect to an instance using PuTTY, but this requires a PPK file. I have a PEM file that I want to hide in PPK using PuTTYgen.

How to use PuTTYgen for Ubuntu to convert a PEM file to PPK?

+6
source share
2 answers

With * nix version of PuTTYgen:

puttygen mykey.pem -o mykey.ppk 

See the PuTTYgen man page .


For Windows users: Please note that PuTTYgen for Windows does not support command-line key conversions.

You can use WinSCP with the /keygen command line instead to convert the key , for example:

 winscp.com /keygen mykey.pem /output=mykey.ppk 

For compatibility with PuTTYgen, WinSCP also supports its syntax:

 winscp.com /keygen mykey.pem -o mykey.ppk 
+21
source

Do you need Putty to connect to the command line of your instance? You mentioned that you are using Ubuntu, so you can use the PEM key with simple ssh:

 ssh -i mykey.pem user@hostname 
+3
source

Source: https://habr.com/ru/post/981265/


All Articles