Ravi Sir's Cyber Security Cards › Revision Cards
EC2 SSH key and chmod 400
Revision card: EC2 SSH key and chmod 400. Easy English, with a real example. Scan the QR for the full lesson.

Read card text
What this card says
| Thing | Rule |
|---|---|
| Key file (.pem) | chmod 400 |
| Login | ssh -i key.pem user@ip |
| If too open | SSH refuses the key |
In one line
An EC2 cloud server is opened with a key file; keep it at chmod 400 (owner read only) or SSH refuses it.
Note
Example: logging in to an Amazon EC2 Linux server.
Learn more in the lesson: 4.4 Key Pairs, chmod 400 and SSH from Linux/Mac