Skip to content

Instantly share code, notes, and snippets.

@rikka0w0
Created May 11, 2025 16:55
Show Gist options
  • Save rikka0w0/e02c3c114bece57eb4dd327f629bb59f to your computer and use it in GitHub Desktop.
Save rikka0w0/e02c3c114bece57eb4dd327f629bb59f to your computer and use it in GitHub Desktop.
Fix OpenSSH server key permission on Windows

The magic spell: icacls.exe C:\ProgramData\ssh\administrators_authorized_keys /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"

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