What is the best way to set up a SFTP with multiple users? Which products work best to set this up and about what price would it be?

Posted October 13, 2017 2.7k views
Object Storage
  • 20-50 GBs for storage
  • Fast connection
  • And work for giving different access to each user

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.

Submit an Answer
1 answer

This should not involve any cost beyond a droplet to host it. Our 2GB droplet includes 50GB of storage space at a cost of $10/month.

All droplets have an SFTP service by default and adding new users to your server itself from the command line will give them SFTP access and restrict their ability to upload or change files to their home directory or any files that are world-writable.

This process alone will not lock the user into a directory however so they will be able to browse but not change other files on the server. If you wish to lock the user to their home directory you will need a chroot configuration. While this guide is for Arch Linux it uses standard Linux utilities and configuration file locations that should work for most systems.