

Run this command in an elevated command prompt: netsh advfirewall firewall add rule name='SSHD Port' dir=in action=allow protocol=TCP localport=22Microsoft has supplied the following alternative command for PowerShell:


Now, remove all other permissions to get something like this:Click 'Apply' and confirm the operation. Click 'Add' and add the permission 'Read' for the user 'NT Servicesshd'.Right-click the ssh_host_ed25519_key file and change its ownership to the sshd service user, e.g. Alternatively, you can perform these steps.That's it! All the required permissions are set.
