# ssh connection closed waiting for a privilege escalation password prompt

**URL:** <https://forum.ansible.com/t/ssh-connection-closed-waiting-for-a-privilege-escalation-password-prompt/18439>\
**Category:** Ansible Project\
**Created:** [June 8, 2015, 10:45pm UTC](https://forum.ansible.com/t/ssh-connection-closed-waiting-for-a-privilege-escalation-password-prompt/18439 "2015-06-08T22:45:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Woon](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mark\_Woon](https://forum.ansible.com/u/Mark_Woon)\
**Post date:** [June 8, 2015, 10:45pm UTC](https://forum.ansible.com/t/ssh-connection-closed-waiting-for-a-privilege-escalation-password-prompt/18439/1 "2015-06-08T22:45:54Z")

</div>

After going from 1.7.1 to 1.9.1 I’m getting “ssh connection closed waiting for a privilege escalation password prompt” errors. I tried switching to using the new become directives, but I’m still having problems.

Here’s the simplest test case I’ve come up with:

**test.yml:**

---

<div class="post-metadata">

**Author:** ![Simon\_Pierre\_Desrosi](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Simon\_Pierre\_Desrosi](https://forum.ansible.com/u/Simon_Pierre_Desrosi)\
**Post date:** [December 15, 2015, 6:26pm UTC](https://forum.ansible.com/t/ssh-connection-closed-waiting-for-a-privilege-escalation-password-prompt/18439/2 "2015-12-15T18:26:51Z")

</div>

Hello all,

I have the exact same problem. In a brand new directory, with new ansible.cfg file and hosts file the following playbook fails when I ask the password to do sudo, but only with the file module, the command module works just fine.

`
