How to set up chroot SFTP on CentOS/RHEL 6 - Method 2

Edit /etc/ssh/sshd_config

vi /etc/ssh/sshd_config

Match User daniel
        X11Forwarding no
        AllowTcpForwarding no
        ForceCommand internal-sftp
        ChrootDirectory /home/daniel

Set the permissions and ownerships

chown root.root /home/daniel
mkdir /home/daniel/data
chown daniel.daniel /home/daniel/data

Reload SSH

/etc/init.d/sshd reload