Add folder to share in SFTP

General support questions
Post Reply
Posts: 1
Joined: 2020/01/14 14:55:07

Add folder to share in SFTP

Post by Daleximm » 2020/01/14 15:06:26

Hello everyone,
I've been asked to build a SFTP server. I was able to do so by following this tutorial ... -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

Posts: 382
Joined: 2019/10/09 12:31:40

Re: Add folder to share in SFTP

Post by BShT » 2020/01/15 11:59:18

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

Post Reply

Return to “CentOS 7 - General Support”