Last active
February 14, 2026 20:45
-
-
Save nachoal/a45f7e07d07fc9688dae7df1b84e45f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Stop-Service sshd; Start-Sleep 2; (Get-Content C:\ProgramData\ssh\sshd_config) -replace 'Match Group administrators','#Match Group administrators' -replace 'AuthorizedKeysFile __PROGRAMDATA__','#AuthorizedKeysFile __PROGRAMDATA__' | Set-Content C:\ProgramData\ssh\sshd_config; Start-Service sshd; echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment