Enabling the SSH Server service
Open the Windows Settings app and go to Update and Security: For developers.
Switch to Developer mode and wait for it to finish downloading any packages.
If you’re asked to reboot after the previous step, do so now.
Turn on the Device discovery option.
Turn off the Device discovery option again.
This will enable the SSH Server Broker (SshBroker.dll) and SSH Server Proxy (SshProxy.dll) background services which will handle incoming connections to TCP port 22. The Windows Firewall on your device is automatically configured to allow the service to listen for incoming connections from both private and public networks.
Use any SSH client and connect with your Microsoft or local computer account credentials. This will enable you to have a remote cmd.exe.