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
# To avoid permissions problems, run this on Windows PowerShell, Core edition doesn't have SetAccessControl implemented at base level. | |
# A variant for it is welcome. | |
# Allow the powershell session to run this script with: | |
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned | |
function Set-SshPermissions { | |
param ( | |
$pkFile | |
) |