How to configure SFTP server with chroot ?

Secure File Transfer Protocol/SSH File Transfer Protocol (SFTP) is a common method used to transfer files securely.  Configuring SFTP server with chroot ensures to generate a Jail like environment where users cannot access any folders beyond their home directory. As a...