# What are the correct sFTP settings for Ansible

**URL:** <https://forum.ansible.com/t/what-are-the-correct-sftp-settings-for-ansible/29325>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [December 25, 2018, 5:34pm UTC](https://forum.ansible.com/t/what-are-the-correct-sftp-settings-for-ansible/29325 "2018-12-25T17:34:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baraka\_Baraka](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Baraka\_Baraka](https://forum.ansible.com/u/Baraka_Baraka)\
**Post date:** [December 25, 2018, 5:34pm UTC](https://forum.ansible.com/t/what-are-the-correct-sftp-settings-for-ansible/29325/1 "2018-12-25T17:34:04Z")

</div>

Hi!

I am having the problem on a DigitalOcean Ubuntu 18.04.1 LTS server, that when I ping the server with: “ **ansible all -m ping** ”  
I get this error message: “**[WARNING]: sftp transfer mechanism failed on [xxx.xxx.xxx.xxx]**”

I went to the server’s sshd\_config file and tweeked until I got it working. Basically I needed to change this line: “ **Subsystem sftp internal-sftp -f AUTH -l VERBOSE** ”

But I would love to know **what are the proper** and **secure settings Ansible needs for sFTP** , while I don’t expose unnecessary parts of my system.

Thank you for any hint in this regard!

Merry Christmas for you all 🙂
