What are the correct sFTP settings for Ansible

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 :slight_smile: