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
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.
They are symmetric, asymmetric, public, and private.
Two distinct private keys have distinct public keys. Therefore public keys are also unique.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With