Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 4
    NB: These commands must be issued within a command window (CMD.EXE). The second command line would not work for me in a PowerShell command window; it would produce an error message saying 'Invalid parameter "%username%"', even though the environment variable USERNAME is defined an has the correct value. Also, after I invoked these two icacls commands on my RSA private key file, I continue to get the "bad permissions" error message when I invoke ssh in a PowerShell window. Commented Aug 27, 2020 at 20:18
  • 1
    doesn't worth either, still gives "Permissions for '' are too open." Commented Aug 15, 2021 at 7:03
  • 1
    a Non-administrator cmd.exe prompt Commented Aug 20, 2021 at 2:09
  • 1
    results in: -r--r--r-- 1 xxx xxx xxx xxxxxxxx id_rsa but we want -rwx------
    – rundekugel
    Commented Jan 24, 2022 at 9:37