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

2

20

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?

Telfore answered 20/1, 2015 at 10:16 Comment(0)
D
50

With *nix version of PuTTYgen:

puttygen mykey.pem -o mykey.ppk

See PuTTYgen man page.

On Ubuntu, you can install the PuTTY package with sudo apt install putty-tools.


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
Darg answered 20/1, 2015 at 10:47 Comment(0)
O
6

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
Outlook answered 20/1, 2015 at 10:23 Comment(1)
Thanks so much, i can now able to access AWS via command prompt in windows machine.Tanbark

© 2022 - 2024 — McMap. All rights reserved.