ssh "permissions are too open"

0

I have a ***.pem I used to login to my EC2 instance which hosts automated Discounted Cash Flow and WACC. I just bought a new laptop and send that file from my old laptop to my new one. However now when I try to login to my EC2 instance, it says permission are too open and does not allow me to login to my instance. Really appreciate any help

asked 2 years ago503 views
2 Answers
0

if linux try chmod 400 ~/.ssh/id_rsa

Elvin
answered 2 years ago
0

That error message is local to your computer, it's not related to the EC2 instance. It's telling you that the file permissions on the .pem file are too permissive. As per the other answer, change the permissions on the file so that only you (as the file owner) can read it: chmod 400 mykeyfilename.pem

profile pictureAWS
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions