# Credssp: Received error status from the server

**URL:** <https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715>\
**Category:** Get Help\
**Tags:** windows, error, wsl2, ubuntu\
**Created:** [September 14, 2023, 10:29am UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715 "2023-09-14T10:29:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxmin](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@maxmin](https://forum.ansible.com/u/maxmin)\
**Post date:** [September 14, 2023, 10:29am UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/1 "2023-09-14T10:29:48Z")

</div>

Hi,

I Have a WSL2 on my Windows 10 Pro with Ubuntu 22.04.02 LTS. My Ansible version:

```auto
ansible 2.10.8
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]

```

When I execute my playbook have this error:

```auto
fatal: [192.168.232.30]: {"changed": false, "msg": "credssp: Received error status from the server: (3221225581) STATUS_LOGON_FAILURE 0xc000006d", "unreachable": true}

ansible-playbook -i "$ans_sh_target," -e "ansible_connection=winrm ansible_ssh_port=5986 ansible_user="$ans_sh_usr" ansible_password="$ans_sh_pwd" ansible_winrm_server_cert_validation=ignore ansible_winrm_transport=credssp" main.yml

```

The VM is reachable at 192.168.232.30 with all open ports

Regards  
Massimo

---

<div class="post-metadata">

**Author:** ![cybette](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cybette/32/16_2.png) [@cybette](https://forum.ansible.com/u/cybette)\
**Post date:** [September 14, 2023, 10:39am UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/2 "2023-09-14T10:39:08Z")

</div>

Hi, welcome to the Ansible Community forum and thanks for your message!

However, this is more suited for the #Get Help category, if it’s ok with you, I can transfer it.

Please do not send direct messages for such issues 🙂

Thanks,  
Carol / Ansible Community Team.

---

<div class="post-metadata">

**Author:** ![maxmin](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@maxmin](https://forum.ansible.com/u/maxmin)\
**Post date:** [September 14, 2023, 10:50am UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/3 "2023-09-14T10:50:09Z")

</div>

OK thanks!

---

<div class="post-metadata">

**Author:** ![cybette](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cybette/32/16_2.png) [@cybette](https://forum.ansible.com/u/cybette)\
**Post date:** [September 14, 2023, 10:54am UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/4 "2023-09-14T10:54:17Z")

</div>



---

<div class="post-metadata">

**Author:** ![bmbufalo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bmbufalo/32/295_2.png) [@bmbufalo](https://forum.ansible.com/u/bmbufalo)\
**Post date:** [September 15, 2023, 2:48pm UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/5 "2023-09-15T14:48:44Z")

</div>

Assuming the username and password are correct and WinRM is correctly configured with the ports opened, you can try to use `ntlm` for the transport and post those results/errors. If so then we know the setup, at a basic level is working.  
Next, you’ll need to ensure [all the prerequisite steps](https://docs.ansible.com/ansible/latest/os_guide/windows_winrm.html#credssp) have been completed to ensure the entire environment is configured correctly and reply with the results/errors.

---

<div class="post-metadata">

**Author:** ![maxmin](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@maxmin](https://forum.ansible.com/u/maxmin)\
**Post date:** [September 15, 2023, 3:08pm UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/6 "2023-09-15T15:08:05Z")

</div>

Hi,

I solved the problem my install.sh that was this:

```auto

#!/bin/sh -v

ans_sh_target='XXX.XXX.XXX.XXX'
ans_sh_usr='bnxroot'
#ans_sh_pwd='XXX'
read -s -p "Indicare la password per l'utente $ans_sh_usr: " ans_sh_pwd

ansible-playbook -i "$ans_sh_target," --become -e "ansible_connection=ssh ansible_user="$ans_sh_usr" ansible_password="$ans_sh_pwd" ansible_become_pass="$ans_sh_pwd" " main.yml

```

change this #!/bin/sh -v with 🙂

```auto
#!/bin/bash -v

```

Thanks

---

<div class="post-metadata">

**Author:** ![Leo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/leo/32/23_2.png) [@Leo](https://forum.ansible.com/u/Leo)\
**Post date:** [September 15, 2023, 9:36pm UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/7 "2023-09-15T21:36:08Z")

</div>

Hi @maxmin , thank you for sharing your own solution. I’m tagging your last comment as the solution, even if you solved it yourself 🙂

A couple of comments to help you in the future:

1. I would recommend you upgrade Ansible. The version 2.10 you are using is at end of life.
2. I just edited your posts to include the “code blocks” tag, so the scripts show in a box, and makes it clear and keeps format. In case you use email, it’s 3 single ticks to open and to close like this:

`````  
code  
` ````

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [October 15, 2023, 9:36pm UTC](https://forum.ansible.com/t/credssp-received-error-status-from-the-server/715/8 "2023-10-15T21:36:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
