Friday, November 6, 2020

How To Convert .ppk file into .pem In Ubuntu Linux

what is .ppk file

Files created by PuTTYgen are known as PPK files. PPK files are PuTTY Private Key Files developed by Putty and they serve as storage for the private keys the program generated. These files are used to enable communication securely with another party having the corresponding public key

what is .pem file

A key pair, consisting of a private key and a public key, is a set of security credentials that you use to prove your identity when connecting to an instance. Amazon EC2 stores the public key, and you store the private key. You use the private key, instead of a password, to securely access your instances.

1) install putty-tools with the following command.

$ sudo apt-get install putty-tools


2) Now convert your .ppk file into .pem using the following command.

$ puttygen yourkey.ppk -O private-openssh -o yourkey.pem

  • it will ask for parphases (during creating ppk in WHN cpanel


3) Set the permission in .pem file with following command.

$ chmod 400 yourkey.pem


4) Now connect to your server using the below command.

$ ssh -i yourkey.pem serverusername@server-ip

No comments:

Post a Comment

testing