This topic needs a title

Hi All,
I am trying to connect to windows server and getting the below error,can anyone please help me with this?

my hosts file looks as below,

my hosts file looks as below,

i am trying to configure communication between Ansible node and windows server with kerberos.

Thanks
Deepak

(attachments)

Have you run the configureforansiblleremoting.ps1 script to set up the certificates? 5986 requires you to set up the winrm listener to be set up with a cert

(attachments)


Hi,

Yes,did ran the script,

Thanks
Deepak

(attachments)


Looks like port 5986 is closed on your firewall.

use a tool like nmap to check if you can see this open

nmap your_windows_client_ip -p 5896 -PN

The output will be something like this

This link has a lot of information about configuration of winrm
https://github.com/crombeen/ansible

Best regards.

(attachments)



Hi Emiliano,

The port says filtered,could you please help me with what can be done.

image.png

Thanks
Deepak

(attachments)




checked on the windows server,

(attachments)




Hi Deepak!

You need to run this powershell script as administrator:

https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1

Inside of this ps1 you have this lines. This part open port 5986 for remote access.

Best regards

(attachments)