Created
July 27, 2022 13:59
-
-
Save 0xAPPA/535f043966b6a438f64766ff213d2cbb to your computer and use it in GitHub Desktop.
set correct permissions for ssh keys on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
icacls .\private.key /inheritance:r | |
icacls .\private.key /grant:r "%username%":"(R)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for '...student_key.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 "...student_key.pem": bad permissions
ubuntu@ip: Permission denied (publickey).