45 views
Skip to first unread message

Deepak Gowda

unread,
Jan 4, 2021, 3:58:48 AM1/4/21
to ansible...@googlegroups.com
Hi All,
I am trying to connect to windows server and getting the below error,can anyone please help me with this?

image.png
my hosts file looks as below,

Deepak Gowda

unread,
Jan 4, 2021, 4:00:07 AM1/4/21
to ansible...@googlegroups.com
my hosts file looks as below,

image.png

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

Thanks
Deepak

Wei-Yen Tan

unread,
Jan 4, 2021, 4:18:37 AM1/4/21
to ansible...@googlegroups.com
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


From: ansible...@googlegroups.com <ansible...@googlegroups.com> on behalf of Deepak Gowda <deepak...@gmail.com>
Sent: Monday, January 4, 2021 9:59:35 PM
To: ansible...@googlegroups.com <ansible...@googlegroups.com>
Subject: [ansible-project] Re:
 
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAMgb9d8K0Po0jyQ6zB9D%2BSHLRKzgzcZfhQcyh5-8YWx%2BszTyBw%40mail.gmail.com.

Deepak Gowda

unread,
Jan 4, 2021, 4:59:19 AM1/4/21
to ansible...@googlegroups.com
Hi,

Yes,did ran the script,

image.png

Thanks
Deepak

Emiliano Vazquez

unread,
Jan 4, 2021, 8:04:29 AM1/4/21
to ansible...@googlegroups.com
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
image.png

This link has a lot of information about configuration of winrm

Best regards.

Deepak Gowda

unread,
Jan 4, 2021, 11:20:44 PM1/4/21
to ansible...@googlegroups.com
Hi Emiliano,

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

image.png

Thanks
Deepak

Deepak Gowda

unread,
Jan 5, 2021, 5:47:08 AM1/5/21
to ansible...@googlegroups.com
checked on the windows server,


On Mon, Jan 4, 2021 at 6:34 PM Emiliano Vazquez <emilian...@gmail.com> wrote:

Emiliano Vazquez

unread,
Jan 5, 2021, 6:39:27 AM1/5/21
to ansible...@googlegroups.com
Hi Deepak!

You need to run this powershell script as administrator:


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

image.png


Best regards


Reply all
Reply to author
Forward
0 new messages