Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats the difference between .ppk and .pem . Where .pem is stored in amazons ec2 cluster?

I am using Amazon's EC2 cluster for running GraphLab. They want the location of my .pem file, which is my private key.

After searching I still I could not find the file in ubuntu. I am using PuTTY.

like image 670
Divine Retribution Avatar asked Dec 04 '13 05:12

Divine Retribution


People also ask

Where is pem file on EC2 instance?

The pem key (private key) file is on your local PC. The EC2 machine has only the public key. If you want to scp from one EC2 to another EC2 instance that are launched using the same keypair, you have to transfer your pem key file to one of your EC2 machines.

What is .pem file in AWS?

PEM stands for Privacy Enhanced Mail. The PEM format is often used to represent certificates, certificate requests, certificate chains, and keys. The typical extension for a PEM–formatted file is . pem , but it doesn't need to be. AWS does not provide utilities for manipulating PEM files or other certificate formats.

What is pem file in EC2?

When you create an Amazon EC2 instance, AWS generates the access keys in a Privacy Enhanced Mail (PEM) format. For those who want to PuTTY to their EC2 instance, there's a complication: PuTTY does not natively support the PEM file format. You must convert the PEM to a PPK file in order to PuTTY into the instance.

What is a .PPK file?

File created by PuTTYgen (PuTTY Key Generator), a program used for generating keys for public-key cryptography; stores a private key generated by the program; used for enabling secure communication with a remote entity that has the corresponding public key.


1 Answers

.pem file is what you have download from AWS when you created your key-pair. This is only a one time download and you cannot download it again.

Your software is asking for .pem file. Now you are the one who needs to locate that file. You might have downloaded it on you laptop/desktop...etc.

As I said above, .pem is not saved anywhere on EC2. It is a one time download and you have to keep it safe.

For Putty (windows ssh client), it does not support .pem format. Hence you have to convert it to .ppk format using PuTTyGen. Its essentially .pem but in a different format so that Putty can work with it.

like image 80
slayedbylucifer Avatar answered Oct 05 '22 10:10

slayedbylucifer