I am unable to change permissions to 600 on an AWS .pem file.
- Note that "inherited permissions" were turned off in all efforts, and owner was set properly.
- Tried using this guide with File Explorer:
https://stackoverflow.com/questions/5264595/windows-chmod-600 - Tried using this guide with PowerShell as Admin, and ICACLS:
Windows SSH: Permissions for 'private-key' are too open - Tried good ole' fashioned:
chmod 600 with Git Bash. ng. - I followed the instructions in this vid (skip to 5:17):
https://www.youtube.com/watch?v=ZcC4Eq0a5Mw - I've also tried resetting the file in an Admin Windows Powershell with:
icacls .\key.pem /T/ Q/ /C /RESET
The file stubbornly remains at permissions 644, or rw-r--r--. Since AWS requires 600 on a .pem file, this prevents me from ssh'ing into my instance.
Nothing is working! Why is this stuck? Why can't I change these permissions? Such a simple thing hanging me up and eating up time... frustrating. Ty.