# Couldn't read packet: Connection reset by peer

**URL:** <https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [February 18, 2013, 12:50pm UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382 "2013-02-18T12:50:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 18, 2013, 12:50pm UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382/1 "2013-02-18T12:50:43Z")

</div>

Shouldn't have anything to do with the contents of the playbook.

If you're using -c paramiko, can you try with -c ssh to see if that  
makes a difference? Check ports, see if you can SSH in normally,  
see if you really want to connect as root, etc?

---

<div class="post-metadata">

**Author:** ![lars\_svenson](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@lars\_svenson](https://forum.ansible.com/u/lars_svenson)\
**Post date:** [July 16, 2013, 5:55pm UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382/2 "2013-07-16T17:55:40Z")

</div>

I had the same problem.

You have to install sshpass first.

And then you should run the playbook with --ask-pass option like:

ansible-playbook --ask-pass playbook.yml -c ssh

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [July 16, 2013, 6:08pm UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382/3 "2013-07-16T18:08:39Z")

</div>

Can you please file a ticket at [github.com/ansible/ansible](http://github.com/ansible/ansible) ?

We should yell about not finding sshpass in this case.

---

<div class="post-metadata">

**Author:** ![lars\_svenson](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@lars\_svenson](https://forum.ansible.com/u/lars_svenson)\
**Post date:** [July 17, 2013, 3:13pm UTC](https://forum.ansible.com/t/couldnt-read-packet-connection-reset-by-peer/12382/4 "2013-07-17T15:13:53Z")

</div>

Did it 🙂

[https://github.com/ansible/ansible/issues/3564](https://github.com/ansible/ansible/issues/3564)
