This question already has an answer here:
I'm trying to have some users able to sftp but not ssh. I've looked at OpenSSH: Difference between internal-sftp and sftp-server and Trying to ChrootDirectory an SFTP user to their home directory
Inside of sshd_config I have the lines
Subsystem sftp internal-sftp AllowUsers <a bunch of users> Match group sftponly ChrootDirectory /home/%u X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp
Filezilla gives me
Error: Network error: Software caused connection abort Error: Could not connect to server
When I comment out the
I am able to connect fine.
How can I chroot?