skip to Main Content
    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


  1. WARNING: UNPROTECTED PRIVATE KEY FILE! 
    

    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

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search