Page 1 of 1

Add folder to share in SFTP

Posted: 2020/01/14 15:06:26
by Daleximm
Hello everyone,
I've been asked to build a SFTP server. I was able to do so by following this tutorial
https://www.howtoforge.com/tutorial/how ... -on-centos
I was able to follow this procedure and all is working well, but it only share 1 folder. I would like to share other folders to achieve what I want. Is there a way to add folders?

Thank you

Re: Add folder to share in SFTP

Posted: 2020/01/15 11:59:18
by BShT
you can control this with ChrootDirectory /data/%u

then you have to create directories and sub directories

pay attention to directory tree you will not share directories on the same level with chroot