# Windows Host Issue: Consider changing the remote tmp path in ansible.cfg to a path rooted in

**URL:** <https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [December 25, 2020, 10:39pm UTC](https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371 "2020-12-25T22:39:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammed\_Alnajdi](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mohammed\_Alnajdi](https://forum.ansible.com/u/Mohammed_Alnajdi)\
**Post date:** [December 25, 2020, 10:39pm UTC](https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371/1 "2020-12-25T22:39:28Z")

</div>

Greeting Guys,

I am using Ansible 2.9.6 from a Debian machine and i am trying to run the ping\_win module  
on a windows target host but i am presented with this error.

“”"  
“msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "`echo /tmp/.ansible-abc/ansible-tmp-1608935561.4827693-223757110227446`" && echo ansible-tmp-1608935561.4827693-223757110227446="`echo /tmp/.ansible-abc/ansible-tmp-1608935561.4827693-223757110227446`" ), exited  
with result 1”,  
“unreachable”: true  
}  
“”"

Even thought i am able to ssh to the windows host fine by running  
`ssh <ip-of-the-server>`

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![John\_Veliss](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@John\_Veliss](https://forum.ansible.com/u/John_Veliss)\
**Post date:** [December 26, 2020, 12:21am UTC](https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371/2 "2020-12-26T00:21:24Z")

</div>

What authentication are you using?

---

<div class="post-metadata">

**Author:** ![Mohammed\_Alnajdi](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mohammed\_Alnajdi](https://forum.ansible.com/u/Mohammed_Alnajdi)\
**Post date:** [December 26, 2020, 12:36am UTC](https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371/3 "2020-12-26T00:36:02Z")

</div>

I am using password authentication [https://docs.ansible.com/ansible/latest/user\_guide/windows\_setup.html#win32-openssh-authentication](https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#win32-openssh-authentication)

---

<div class="post-metadata">

**Author:** ![John\_Veliss](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@John\_Veliss](https://forum.ansible.com/u/John_Veliss)\
**Post date:** [December 26, 2020, 12:43am UTC](https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371/4 "2020-12-26T00:43:58Z")

</div>

Does it work if you use ntml or kerberos auth

---

<div class="post-metadata">

**Author:** ![Mohammed\_Alnajdi](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mohammed\_Alnajdi](https://forum.ansible.com/u/Mohammed_Alnajdi)\
**Post date:** [December 26, 2020, 12:49am UTC](https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371/5 "2020-12-26T00:49:44Z")

</div>

i am using openssh not winrm. I am not sure if i can use NTLM or kerberos with openssh.

---

<div class="post-metadata">

**Author:** ![Mohammed\_Alnajdi](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mohammed\_Alnajdi](https://forum.ansible.com/u/Mohammed_Alnajdi)\
**Post date:** [December 26, 2020, 9:27am UTC](https://forum.ansible.com/t/windows-host-issue-consider-changing-the-remote-tmp-path-in-ansible-cfg-to-a-path-rooted-in/34371/6 "2020-12-26T09:27:51Z")

</div>

Okay following the Microsoft official openssh docs on how to install it made it work for me.  
[https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh\_install\_firstuse](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse)
