I have a small problem. I'm on Debian 7, i have made a new user with group. I need to make this user fully privileged and JAILED to directory /usr/share/nginx. When i want to connect to sftp there appears connection problem. This is because of set configuration of Match Group/Match User. Without of that connection is successfull but with / directory of system.This is my sshd_configPort - im connecting to right portSubsystem sftp internal-sftpMatch User testsftp    ChrootDirectory /usr/share/nginx    AllowTCPForwarding no    X11Forwarding no    ForceCommand internal-sftpMatch Group sftpgroup    ChrootDirectory %h    X11Forwarding no    AllowTcpForwarding no    ForceCommand internal-sftpI have uncommented usePAM 
Jail sftp user in nginx directory
debian;chroot;sftp