SSH on Windows 10

Enabling the built-in sshd service in windows 10 home edition



Install the feature

Manage optional features -> Add a feature -> OpenSSH Server

Configure the feature

Grant "Replace a Process Level Token"

Windows 10 doesn't have Security Policy Editor, so you must use powershell

#Install PowerShell extentions (http://pscx.codeplex.com/releases)
Install UserRights powershell module (https://gallery.technet.microsoft.com/scriptcenter/Grant-Revoke-Query-user-26e259b0)

Enable Scripts and import the module

( Start an admin powershell)
Set-ExecutionPolicy RemoteSigned –Scope CurrentUser
Set-ExecutionPolicy RemoteSigned –Scope LocalMachine

Import-Module C:\Users\Allen\Downloads\UserRights.ps1

Grant-UserRight -Account "NT Service\sshd" SeAssignPrimaryTokenPrivilege



Soruces
https://www.bleepingcomputer.com/news/microsoft/how-to-install-the-built-in-windows-10-openssh-server/
https://social.technet.microsoft.com/Forums/windowsserver/en-US/f00be61f-b725-4b15-be77-ffa695a2abc7/not-able-to-install-powershell-community-extensions?forum=winserverpowershell
https://superuser.com/questions/309360/windows-7-equivalent-for-ntrights-exe
https://github.com/Sitecore/Sitecore.Demo.Retail/blob/master/scripts/Commerce/UserRights.psm1
Comments