608 B
608 B
Installing OpenSSH
In settings, select Apps & Features -> Optional features -> add new
Select OpenSSH server from the list.
Reboot the machine.
When back in, open services.msc and enable the OpenSSH Server service.
Adding local administrator account
net user backup /add
net localgroup Administrators backup /add
net user backup *
Connecting from HOST
To connect with SSH and Ansible, the HOST machine must have sshpass installed.
It is also necessary to have ansible.windows installed:
ansible-galaxy collection install ansible.windows