WARNING: UNPROTECTED PRIVATE KEY FILE!
Permissions for ‘D:Windows10azureazureuser.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 "D:Windows10azureazureuser.pem": bad permissions
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
2
Answers
This error indicates that the private key file is accessible by others.
The easy way to fix this is to change the permissions of the private key file.
You can navigate to the file location in the file explorer –> Right Click on the file and select properties –> Go to the security tab –> Click on Advanced -> Change the Owner to you, grant yourself full control and disable the inheritance. Also delete other permissions –> Click on apply to save the permissions
Answer for Linux/Ununtu OS:
Rerun after running following command on terminal to protect your private key.
chmod 400 name-of-your-private-key-file.pem
Note: Please note, as a security mandate, it is required to protect your private-key file from other users on your local machine.