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

gefragt vor 2 Jahren524 Aufrufe
2 Antworten
0

if linux try chmod 400 ~/.ssh/id_rsa

Elvin
beantwortet vor 2 Jahren
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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen