# Weird deployment issue - "subsystem request failed on channel 0 - Connection reset by peer"

**URL:** <https://forum.ansible.com/t/weird-deployment-issue-subsystem-request-failed-on-channel-0-connection-reset-by-peer/19827>\
**Category:** Ansible Project\
**Created:** [November 22, 2015, 11:26am UTC](https://forum.ansible.com/t/weird-deployment-issue-subsystem-request-failed-on-channel-0-connection-reset-by-peer/19827 "2015-11-22T11:26:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Luzon](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Post date:** [November 22, 2015, 11:26am UTC](https://forum.ansible.com/t/weird-deployment-issue-subsystem-request-failed-on-channel-0-connection-reset-by-peer/19827/1 "2015-11-22T11:26:24Z")

</div>

Hey guys,

We are experiencing an issue with one of our servers. This happens during the gather facts task. I am not a systems guy so i’m not sure what is going on here.

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
 ESTABLISH CONNECTION FOR USER: deploy\_rn  
 REMOTE\_MODULE setup CHECKMODE=True  
 EXEC ssh -C -tt -vvv -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=deploy\_rn -o ConnectTimeout=10 LDSB-COH04 /bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322 && echo $HOME/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322’  
 PUT /tmp/tmpV2JSGP TO /home/jajah.dublin/deploy\_rn/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322/setup  
fatal: [LDSB-COH04] =\> failed to transfer file to /home/jajah.dublin/deploy\_rn/.ansible/tmp/ansible-tmp-1448191353.32-199010706409322/setup:

Connecting to LDSB-COH04…

---

<div class="post-metadata">

**Author:** ![Amir\_Luzon](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Post date:** [November 22, 2015, 1:21pm UTC](https://forum.ansible.com/t/weird-deployment-issue-subsystem-request-failed-on-channel-0-connection-reset-by-peer/19827/2 "2015-11-22T13:21:24Z")

</div>

Fixed by adding this in ansible.cfg:

[ssh\_connection]  
scp\_if\_ssh=True
