I have been trying to run these commands but I keep getting permission denied
I tried this chmod 400 xxxxxx.pem
and with sudo
too.
The current permissions are -r--r--r-- for the pemfile. Please help. I cannot connect to my EC2 instances without this pem file.
IF i try to connect i get this error
Warning: Permanently added 'ec2-x54-xxx-xxx-xxx.compute-1.amazonaws.com' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0444 for 'xxxxxx.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 "xxxxxx.pem": bad permissions
I have tried this on WSL2-ubuntu and git bash.
chmod
.