Report this

What is the reason for this report?

How to give limited SFTP access to a web developer

Posted on July 5, 2015

I really don’t want to install a ftp client. How could I give SFTP access to a developer and have him limited to one directory i.e /var/www/htm/temp/

He should have full read and write access to everything above /temp Ideally, if he tries to login in via ssh it wold not allow it. I’ve read several tutorials now and tried different things with chroot, but just can’t seem to get it correct. Thanks for any help!

I’m using the latest Ubuntu LTS version.



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.

Thanks Contex, can you recommend a good tutorial on chroot jail?

I just hired him from a job board and I’ve only know him for 5 minutes. I do have an image backup in the worst case. But, is there a secure way to do this?

Why don’t you trust your developer? What prevents him from executing shell commands through your web server?

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.