How to Convert PPK to PEM File using Command in Linux

linux

We all know using PuTTY tools we convert a .pem file to .ppk. But sometimes our clients give us to .ppk file, But we use a Linux machine so we need to convert it to .pem.

So following is a process of converting .ppk to .pem:

Install PuTTY tools in Ubuntu/Debian/LinuxMint

# sudo apt-get update

# sudo apt-get install putty-tools

Now convert .ppk file to .pem file

# puttygen /home/key.ppk -O private-openssh -o /home/key.pem

Give permission 400 to pem key file

# chmod 400 /home/key.pem

Now you can use produced .pem file to connect to a server from Linux machine.

# ssh -i /home/serverkaka.pem ubuntu@IP
AmritMatti

I’m the owner of “DevOpsTechy.online” and been in the industry for almost 5 years. What I’ve noticed particularly about the industry is that it reacts slowly to the rapidly changing world of technology. I’ve done my best to introduce new technology into the community with the hopes that more technology can be utilized to serve our customers. I’m going to educate and at times demonstrate that technology can help businesses innovate and thrive. Throwing in a little bit of fun and entertainment couldn’t hurt right?

AmritMatti

I’m the owner of “DevOpsTechy.online” and been in the industry for almost 5 years. What I’ve noticed particularly about the industry is that it reacts slowly to the rapidly changing world of technology. I’ve done my best to introduce new technology into the community with the hopes that more technology can be utilized to serve our customers. I’m going to educate and at times demonstrate that technology can help businesses innovate and thrive. Throwing in a little bit of fun and entertainment couldn’t hurt right?

View all posts by AmritMatti →

Leave a Reply

Your email address will not be published. Required fields are marked *