Hot answers tagged sshd
You need Match group sftp to be before the lines you want to apply to that group. Nothing is being applied to the group sftp because there are no keywords after it! Or rather, in this case, the keywords are being applied to everyone because you don't specify a group to match until after them. To quote from man sshd_config Match Introduces a conditional ...
Only top voted, non community-wiki answers of a minimum length are eligible