EC2 Ubuntu Instance - UNPROTECTED PRIVATE KEY FILE
21,210
Solution 1
Private keys must be readable only by the owner ..
Do chmod 400 xxxxx.pem
on the machine from which you're connecting
Solution 2
See the description to ssh to EC2 instance on AWS.
Then, you can find "No.3" saying like this below.
So in this case, just run:
chmod 400 myKey.pem
Comments
-
Emile over 1 year
I just created an Ubuntu instance on EC2, but when I try and SSH into the machine, I get:
UNPROTECTED PRIVATE KEY FILE! permissions 0644 for 'xxxxx.pem' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: xxxxx.pem Permission denied (publickey).
In creating the key, you only enter a name (without the option of adding a password).
How can I SSH into the machine without this warning popping up?