Dwarf
Salut,
Je ne pense pas qu'il faille mettre le directive "AllowUsers ni AllowGroup" dans la partie "Match" du chroot ; mais dans la partie principale comme ici:
./..
# Authentication:
#LoginGraceTime 2m
PermitRootLogin prohibit-password
AllowGroups sftpusers sudo root
#StrictModes yes
PasswordAuthentication no
#PermitEmptyPasswords no
#MaxAuthTries 6
#MaxSessions 10
./..
Match Group sftpusers
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no
GatewayPorts no
X11Forwarding no
Redémarre le service ssh après modifs...
Edit; c'est un exemple dans mon cas (connexion/clefs exclusivement).