Secure FTP Chroot jailing
In this article, I am going to explain you how to enable chroot jailing on sftp which means that sftp users can view and edit only within their home directories only. By default sftp users have shell access to access other users home directories and they also have access under / directories. Let us see how to restrict sftp users within their home directories.
Step 1: Creating chroot directory to secure /home
#mkdir /chroot/home
