New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
Start-Process cmd /c -Credential $credentials -ErrorAction SilentlyContinue -LoadUserProfile
# For local account
AllowUsers <PERUN_USER>
# From
#PasswordAuthentication yes
# To
PasswordAuthentication no
command="& c:\<INSTALLATION_FOLDER>\perun\perun_connector.ps1 $input; exit $LASTEXITCODE" ssh-rsa publickey perun@idm.ics.muni.cz
- C:\Users\<PERUN_USER>\.ssh\authorized_keys
- C:\ProgramData\ssh\administrators_authorized_keys
Restart sshd service
Restart-Service sshd