Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
Hi @jtittle
Thank you so much for taking the time to read and reply to my post!
After following your great instructions, the user user-sftp-only is restricted to just the newsletters folder. user-sftp-only can upload, rename and delete files and sub-folders via SFTP only. Great.
If I cd to /home/user-sftp-only and run ls -l I see this:
drwxr-xr-x 2 user-sftp-only user-sftp-only 4096 Mar 8 11:58 newsletters
Next step is to configure a way to sync the files located here:
/home/user-sftp-only/newsletters
So they automatically appear here:
/srv/users/serverpilot/apps/test-app/public/newsletters
I found a DigitalOcean article How To Mirror Local and Remote Directories on a VPS with lsyncd. Is this what you have in mind for syncing?
hi guys, tks for guide! I get error in filezilla if I log with new user: network error: software caused connection abort filezilla
Hi @jtittle
That works great! Thank you so much for your help with this.
It’s a shame deleted files aren’t also synced, but that’s ok. I’ll set delete = false If the end user ever needs to delete any files I can do it manually for them.
I’ve been struggling with this for longer than I’d like to admit! However, thanks to you and the many DigitalOcean posts I’ve read, I have expanded my knowledge of Terminal and navigating around my server.
Great stuff.