top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to converting a PPK file to a PEM file on Linux?

+5 votes

How to converting a PuTTY Private Key Files(PPK) file to a Privacy Enhanced Mail (PEM) file for accessing AWS ec2 instances on Linux?

posted Feb 26, 2016 by Atindra Kumar Nath

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Install the putty tools

sudo apt-get install putty-tools

Generate the pem file run the following command as-

puttygen ppkkey.ppk -O private-openssh -o pemkey.pem

Place the pemkey.pem file in your ~/.ssh directory as-

cp pemkey.pem ~/.ssh

Set the pem file to have the proper permissions as-

chmod 400 pemkey.pem

Now, we have a valid pem file that we can use to connect to our EC2 instances from Linux.
Now Connect to your pem by this command

ssh -i pemkey.pem user@ec2-instancedotcom

Similarly, if we want to convert pem file to ppk, we can do it like this

puttygen pemKey.pem -o ppkKey.ppk -O private

-o Tells it where to write out the converted putty private key
-O private Tells it that you want a putty private key.
answer Feb 26, 2016 by Divya Shree
Similar Questions
+2 votes

Is there way to use two different keys for ssh authentication on one machine for the same user to login the same server? I need one key for svn+ssh to run command on remote server and the other key to login and work from shell on that same server.

+3 votes

Trying to see if ssh/port forwarding can be used to solve a prob. I want to have multiple clients connected to a single master server

The masterServer/app is providing data on port X
The clientNodes/apps should then listen on port X

ssh allows for port forwarding, but I can't figure out how to accomplish this using ssh/port forwarding.

I've tried using :
ssh -L 8000:localhost:8000 -p abc
as is the vm ip/port that's the server app

I then did a test using nc where on the serverside, I did a nc -l 8000, and got an err msg indicating the port was already in use

Port 8000 is the port the server app sends data on, and is the port I'd like to listen on on the clientnodes/apps..

+4 votes

Is there anything offered in linux that might convert an XML file to a plain text file?

My hopes are that it is flexible enough to make the following type of line:


into something like:

title: Guide

along with all the other fields. It'd be nice if it could handle multiple lines inside a single tag line as well.

+2 votes

What is the easiest way to convert a webpage into a jpg or png file? I've seen several programs that can do
various conversions, but nothing open source that can do it in a single conversion.