I was connecting to an EC2 machine in AWS using the following command on the Windows' Linux Shell:
ssh -i AWSNV.pem ubuntu@<server_ip>
But last week I updated my Windows 10 and this command now returns this error:
WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0777 for 'AWSNV.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "AWSNV.pem": bad permissions Permission denied (publickey).
I've tried so far:
chmod 400 AWSNV.pemand
chmod 600 AWSNV.pem(but the error continues)
- Changing the owner myself, disabling inheritance and deleting all permissions (but I kept getting
permission deniedon the Linux terminal)
Does anyone have some insight on this issue?