Report this

What is the reason for this report?

Granting FTP access to one domain only on a droplet in var/www

Posted on July 2, 2019

Hi everyone!

We have an ubuntu server with about ten different websites on it.

Login is by SSH keys.

I want now to create an SFTP user with access to one domain only.

Is there a tutorial on this? I thought it would be easy but it’s proving tricky!

Thanks for reading,



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.

Hello, there is a tutorial for this here:

https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubuntu-16-04

This will disable SSH access and limit the logged in SFTP user to one directory, eg, the web root directory for your one website/domain.

Even with the tutorial, this is a challenging bit of setup so proceed with caution and don’t forget to backup your droplet in case you need to roll back.

Please let us know how it goes or if you have any questions about the tutorial and process.

Good luck!

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.