2

I am using Ansible (2.9.6) to connect Windows server using WinRM CredSSP. for win ping command its giving server did not response with CredSSP token. CredSSP enabled on the clinet machine

ansible windows -i hosts -m win_ping

 | UNREACHABLE! => {
    "changed": false,
    "msg": "credssp: Server did not response with a CredSSP token after step Step 5. Delegate Credentials - actual 'Negotiate, Kerberos, CredSSP'",
    "unreachable": true
}

Any help to resolve this error message?

Thanks

sfgroups
  • 18,151
  • 28
  • 132
  • 204

4 Answers4

1

On the Windows server set the Credssp to true. Open powershell as administrator and paste the below commands:

winrm set winrm/config/service/auth '@{CredSSP="true"}'

winrm set winrm/config/client/auth '@{CredSSP="true"}'

Enable-WSManCredSSP -Role Server

Then you will be able to get:

 SUCCESS => {
    "changed": false,
    "ping": "pong"

for the ansible windows -i hosts -m win_ping command.

Ethan
  • 876
  • 8
  • 18
  • 34
0

I was getting the below error

msg: 'credssp: Server did not response with a CredSSP token after step Step 5. Delegate Credentials - actual '''''

after updating pywinrm to 0.4.2 the issue was resolved

proc
  • 36
  • 2
  • I'm having the same CredSSP issue. Where did you find pywinrm 0.4.2? The latest version on PyPi and on the project's GitHub page is 0.4.1. Are you using a fork? – zarthur Sep 03 '20 at 17:06
0

I'm using PSRP to a Windows 2012R2 server and I have the same issue on a win_copy task, but win_ping works. That didn't make any sense, then I disabled the Antivirus (McAfee) and the issue is gone.

aventrax
  • 19
  • 5
0

Below commands are helps me to resolve the credssp issue, Thankyou winrm set winrm/config/service/auth '@{CredSSP="true"}'

winrm set winrm/config/client/auth '@{CredSSP="true"}'

Enable-WSManCredSSP -Role Server