Impara con i progetti
How can we convert ppk to pem or vice versa to connect EC2 instances?
There are 3 ways like -
1. With openssl utility, install it in Linux and run below command -
openssl pkcs8 -inform DER -in ppk_file.ppk -outform PEM -out pem_file.pem
2. Puttygen command in Linux
sudo apt install putty-tools
puttygen ppk_file.ppk -O private-openssh -o pem_file.pem
3. Puttygen in Windows, convert PPK to PEM:
Launch PuTTYgen application
Under File menu, click Load private key.
Select your .ppk file, and then choose Open.
Now, under the Conversions menu, click Export OpenSSH Key (force new file format).
Set a new name with the “.pem” extension and click the “Save” button
There are 3 ways like -
1. With openssl utility, install it in Linux and run below command -
openssl pkcs8 -inform DER -in ppk_file.ppk -outform PEM -out pem_file.pem
2. Puttygen command in Linux
sudo apt install putty-tools
puttygen ppk_file.ppk -O private-openssh -o pem_file.pem
3. Puttygen in Windows, convert PPK to PEM:
Launch PuTTYgen application
Under File menu, click Load private key.
Select your .ppk file, and then choose Open.
Now, under the Conversions menu, click Export OpenSSH Key (force new file format).
Set a new name with the “.pem” extension and click the “Save” button