Skip to content

Instantly share code, notes, and snippets.

@0xAPPA
Created July 27, 2022 13:59
Show Gist options
  • Save 0xAPPA/535f043966b6a438f64766ff213d2cbb to your computer and use it in GitHub Desktop.
Save 0xAPPA/535f043966b6a438f64766ff213d2cbb to your computer and use it in GitHub Desktop.
set correct permissions for ssh keys on windows
icacls .\private.key /inheritance:r
icacls .\private.key /grant:r "%username%":"(R)"
@0xAPPA
Copy link
Author

0xAPPA commented Sep 16, 2022

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment