Skip to content

Instantly share code, notes, and snippets.

@BlackChar
Created September 13, 2019 21:10
Show Gist options
  • Save BlackChar/d4453665b1f9c976cf4528c25a90a675 to your computer and use it in GitHub Desktop.
Save BlackChar/d4453665b1f9c976cf4528c25a90a675 to your computer and use it in GitHub Desktop.
Fix permissions on windows 10 openssh authorized_keys
move %userprofile%\.ssh\authorized_keys %programdata%\ssh\administrators_authorized_keys
cd %programdata%\ssh\
icacls administrators_authorized_keys /inheritance:r
icacls administrators_authorized_keys /grant SYSTEM:(F)
icacls administrators_authorized_keys /grant BUILTIN\Administrators:(F)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment