# Strange behavior: ESTABLISH SSH CONNECTION FOR USER: None

**URL:** <https://forum.ansible.com/t/strange-behavior-establish-ssh-connection-for-user-none/38174>\
**Category:** Ansible Project\
**Created:** [June 30, 2023, 4:50am UTC](https://forum.ansible.com/t/strange-behavior-establish-ssh-connection-for-user-none/38174 "2023-06-30T04:50:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Lista](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@Diego\_Lista](https://forum.ansible.com/u/Diego_Lista)\
**Post date:** [June 30, 2023, 4:50am UTC](https://forum.ansible.com/t/strange-behavior-establish-ssh-connection-for-user-none/38174/1 "2023-06-30T04:50:32Z")

</div>

Hello group,

I would like to share this strange behavior.  
PLAY [Update pi-hole servers] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [zeropi.morelos.lan]  
ok: [opizero.morelos.lan]

TASK [Update pi-hole] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [zeropi.morelos.lan]  
changed: [opizero.morelos.lan]

PLAY [Reconfigure DHCP to give both DNS servers] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [zeropi.morelos.lan]: UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: root@zeropi.morelos.lan: Permission denied (publickey,password).”, “unreachable”: true}  
to retry, use: --limit @/etc/ansible/playbooks/pi-hole\_update.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
opizero.morelos.lan : ok=2 changed=1 unreachable=0 failed=0  
zeropi.morelos.lan : ok=2 changed=1 unreachable=1 failed=0

This is the Playbook  
root@monitor ~# cat /etc/ansible/playbooks/pi-hole\_update.yml

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [July 5, 2023, 6:59pm UTC](https://forum.ansible.com/t/strange-behavior-establish-ssh-connection-for-user-none/38174/2 "2023-07-05T18:59:48Z")

</div>

Based on the above, some tasks succeed, and then after a task called  
[Reconfigure DHCP to give both DNS servers], things break.  
That would point to some problem there, where you may have locked  
yourself out in some way that caused the  
What that is, is for you to know - you haven't posted any playbook.

---

<div class="post-metadata">

**Author:** ![Diego\_Lista](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@Diego\_Lista](https://forum.ansible.com/u/Diego_Lista)\
**Post date:** [July 5, 2023, 7:13pm UTC](https://forum.ansible.com/t/strange-behavior-establish-ssh-connection-for-user-none/38174/3 "2023-07-05T19:13:23Z")

</div>

It´s a very small playbook.
