AWS Builder Center
Day 4 Of Cloud with AWS

Day 4 Of Cloud with AWS

#100DaysOfCloud challenge using AWS

SSH keys are a cryptographic authentication mechanism used to securely access remote systems without typing a password each time. In cloud and DevOps workflows, they are foundational for accessing Linux VMs, Git repositories, CI/CD systems, and automation tooling.

Simple Real-World Analogy

Imagine:
  • public key = lock
  • private key = unique physical key
The server:
  • has your lock,
  • asks you to unlock something.
Only the matching private key can do it.
But you never hand over the physical key itself.

Why this is secure ?

Even if someone intercepts network traffic:
  • they cannot derive the private key.
Because:
  • cryptographic signing is one-way.

Why .pem Files Matter in AWS

When AWS gives:
1
mykey.pem
That .pem file IS your private key.
AWS stores the public key on EC2 instances.
During SSH:
  • EC2 verifies your .pem file cryptographically.

Visually

Your PC Server

Private Key Public Key
| |
| ---- request connection --------> |
| |
| <---- cryptographic challenge -- |
| |
| -- signed response using key --> |
| |
| <------- access granted ---------- |
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article