Where to put ansible pub key from linux host on Windows target?

Solution 1:

You need to add the public keys to an authorized_key file in the .ssh folder of the user’s profile directory.

Ansible win32 openssh authentication

Win32-OpenSSH authentication with Windows is similar to SSH authentication on Unix/Linux hosts. You can use a plaintext password or SSH public key authentication, add public keys to an authorized_key file in the .ssh folder of the user’s profile directory, and configure the service using the sshd_config file used by the SSH service as you would on a Unix/Linux host.