Convert .ppk file to .pem file & connect to remote server via SSH - Linux

Published on Aug 1, 2015 & tagged in Linux, Linux Commands, Ubuntu, SSH

First install the putty tools, if you don`t have on your Linux installation.

sudo apt-get install putty-tools

Generate the .pem file from .ppk file with the following command.

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

Place the new generated pemkey.pem file in your ~/.ssh directory.

cp pemkey.pem ~/.ssh

Set the proper permissions for .pem file.

chmod 400 pemkey.pem

To connect via SSH with new .pem file, use below command.

ssh -i pemkey.pem user@server_ip

To convert .pem file to .ppk file,

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

-o means where to write out the converted putty private key & -O private means the output will be in a PuTTY private key format.

Do you need any help on Linux , Linux Commands , Ubuntu & SSH?

I'm happy to help you. Just fill the form on contact page & I will get back to you within few hours.

Recent Posts

  1. Get current store details - Magento 1.9
  2. Simple ways to improve page conversion on product page
  3. Encrypt Email Addresses - PHP
  4. The add_image_size() function - WordPress best practices
  5. Remove page title using filter - WordPress