I have a ftpuser, and am trying to limit them to the /var/www directory. When I sftp, it is not able to connect. But if I have the directory set to /home, then it is able to connect. This is the code that I'm using to chroot:
Code:
Match User ftpuser
ChrootDirectory /var/www
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
In filezilla, I get the error about a network error, and that software caused the connection abort.