When I add the following lines to my sshd_config file, I get a "network error: software caused connection abort" in Filezilla. When I remove these lines, it works fine. But the user can go outside of their directory.
Code:
AllowGroups sftpusers
Match Group sftpusers
ChrootDirectory %h
AllowTCPForwarding no
ForceCommand internal-sftp
My users are part of the sftpusers group.
Any ideas as to why it isn't working?