Skip to content

Instantly share code, notes, and snippets.

@smartexpert
Created January 20, 2021 19:03
Show Gist options
  • Save smartexpert/6987c359b81d904ddd119bc60dab7201 to your computer and use it in GitHub Desktop.
Save smartexpert/6987c359b81d904ddd119bc60dab7201 to your computer and use it in GitHub Desktop.
Fix SSH private key permissions on Windows by restricting access to only the current user
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