Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between various keys in public key encryption

I am confused between various keys used in encryption.

Amazon gave me key.pem

In linux i generate keys like id_rsa and id_rsa.pub

Now putty used key like key.ppk

I am really confused what type of key is used where

like image 999
user22 Avatar asked Jul 16 '13 07:07

user22


People also ask

How many different keys are used in public key encryption?

In a public key system, two keys are used, one for encrypting and one for decrypting. The two keys are mathematically related to each other but knowing one key does not divulge the other key. The two keys are called the “public key” and the “private key” of the user.

What are the 3 types of encryption keys?

They are symmetric, asymmetric, public, and private.

Are all public keys the same?

Two distinct private keys have distinct public keys. Therefore public keys are also unique.


1 Answers

key.pem can contain anything - a certificate with a public key, an SSH public key, public key + private key, certificate with a public key + private key. PEM is a text file so you can open it in notepad and check its contents.

id_rsa is an SSH private key in OpenSSH format. id_rsa.pub is an SSH public key in OpenSSH format.

.ppk file is Putty's private key (if memory serves).

To authenticate on remote server you give its admins your public key and use the private key in your SSH client. Alternatively (if admins give you the key pair), you use the private key from that keypair.

like image 146
Eugene Mayevski 'Callback Avatar answered Oct 12 '22 12:10

Eugene Mayevski 'Callback