Report this

What is the reason for this report?

Setting up an ftp user to upload website files

Posted on October 14, 2025

I have created a user, edited the /etc/ssh/sshd_config file with the user ChrootDirectory. Ssh restarts no problem. Filezilla connects but then the system immediately disconnects. I want this user to access multiple websites so I made a folder in /var/www and set the user as the owner of that folder - which seems like a bad idea (following and AI suggestion). But it won’t stay connected. What am I missing?



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!

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.