Install and start the built-in OpenSSH Server on Windows 10.
If Add-WindowsCapability cannot find the package, enable optional feature download via Group Policy:
gpedit.mscRun the following in an elevated PowerShell session:
# Install OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server
# Verify installation
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
# Check service status
Get-Service sshd
# Start the service
Start-Service sshd
# Set to start automatically on boot
Set-Service -Name sshd -StartupType 'Automatic'
# Verify firewall rule exists
Get-NetFirewallRule -Name *ssh*
Note: The installer automatically creates a firewall rule for port 22. Verify with the last command.