Sample Header Ad - 728x90

Log management using SFTP with openssh-server

0 votes
1 answer
160 views
I'm struggling to find a solution regarding this problem : My goal is to set up a sftp server on a Debian 12, there will be several directories corresponding to each departement of my firm, every member of each departement should be able to acces their corresponding directory. I've tried many solutions but i'm struggling with one point : when ever i'm using chroot i cannot retrieve log beside the connection ones. i tried something like :
Subsystem sftp internal-sftp -f LOCAL7 -l VERBOSE

Match Group sftpusers
ChrootDirectory /var/sftp
ForceCommand internal-sftp
PasswordAuthentication yes
PermitTunnel no
AllowTcpForwarding no
X11Forwarding no
I've another concern, it's seems that my chroot directories is not reachable unless it's set up like this :
chown root:sftpusers /var/ftp
chmod 750 /var/ftp
if i try chmod 770 /var/ftp , i cannt connect to my server. If anybody as a clue regarding this matter it will be a great help. Maybe i'm doing things wrong, and my choices are not the good ones, i'm open to every suggestion to solve this. Thank you
Asked by Ben (1 rep)
Mar 6, 2025, 06:42 AM
Last activity: Mar 9, 2025, 05:48 PM