Windows CHMOD 600

前端 未结 12 1467
逝去的感伤
逝去的感伤 2020-12-24 11:11

I\'m trying to connect to Amazon EC2 using OpenSSH in windows but I need to set the permissions of my key file.

What is the windows equivalent of CHMOD 600

12条回答
  •  感动是毒
    2020-12-24 11:56

    Modify the permissions so that:

    • The key file doesn't inherit from the container
    • You (the owner) have full access
    • Remove permission entries for any other users (e.g., SYSTEM, Administrator)
    • Add an Entry for special user Everyone and edit the permissions for that user to Deny for all permissions:
      • Right click on the file in Windows Explorer and choose Properties > Security > Advanced, to get the Advanced Security Settings dialog.
      • Click on the Permissions tab, then click Change Permissions.
      • Click Add, enter Everyone into the object name field, click Check Names, then click OK.
      • In the Permission Entry dialog, click the checkbox in the Deny column for Full Control.
      • Click OK on each dialog to back out and close the file's properies dialog.

    Now scp will read permissions 0400 and will be happy. Ish.

提交回复
热议问题