Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert PEM file to PPK using PuTTYgen in Ubuntu [closed]

I have created an EC2 instance on AWS. I want to connect to the instance using PuTTY, but it requires PPK file. I have PEM file which I want to covert into PPK using PuTTYgen.

How do I use PuTTYgen on Ubuntu to convert PEM file to PPK?

like image 309
Sumit Patil Avatar asked Jan 20 '15 10:01

Sumit Patil


People also ask

Is PEM same as PPK?

PEM (Privacy Enhanced Mail) is a base64 container format for encoding keys and certificates. . pem download from AWS when you created your key-pair. This is only a one time download and you cannot download it again. PPK(Putty Private Key) is a windows ssh client, it does not support .


2 Answers

With *nix version of PuTTYgen:

puttygen mykey.pem -o mykey.ppk

See PuTTYgen man page.


For Windows users: Note that Windows version of PuTTYgen does not support key conversions from command-line.

You can use WinSCP with the /keygen command-line switch instead to convert the key, like:

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
like image 69
Martin Prikryl Avatar answered Sep 28 '22 00:09

Martin Prikryl


Do you need Putty to connect to your instance's command line? You mentioned you use Ubuntu, so you can use PEM key with plain ssh:

ssh -i mykey.pem user@hostname
like image 41
zakjan Avatar answered Sep 28 '22 02:09

zakjan