what is the difference between various keys in public key encryption

EncryptionSshAmazon Web-ServicesPuttyPublic Key-Encryption

Encryption Problem Overview


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

Encryption Solutions


Solution 1 - Encryption

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser22View Question on Stackoverflow
Solution 1 - EncryptionEugene Mayevski 'CallbackView Answer on Stackoverflow