In this recipe, you'll find out how to configure SSH to allow logins to a remote system by using cryptographic key files between two Linux and Windows machines.
Testing PowerShell remoting with OpenSSH using keys between Linux and Windows machines
Getting ready
On the remote Windows machine (wintel01), you need to ensure that the OpenSSH server package is installed and configured. You also need to copy the public key using any of the available tools. In this case, WinSCP has been installed so that it copies the id_rsa.pub file to the remote Windows machine.