Start the service and/or configure automatic start:.or go to Control Panel > System and Security > Windows Defender Firewall 1 > Advanced Settings > Inbound Rules and add a new rule for port 22.Replace C:\System32\OpenSSH\sshd.exe with the actual path to the sshd.exe ( C:\Program Files\OpenSSH\ssh.exe, had you followed the manual installation instructions above). New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH SSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program 'C:\System32\OpenSSH\sshd.exe' Either run the following PowerShell command as the Administrator:.If not, proceed to create and enable the rule as follows.