There are several reasons to restrict a SSH user session to a particular directory, especially on web servers, but the obvious one is a system security. In order to lock SSH users in a certain directory, we can use chroot mechanism.
Continue reading “Restrict SSH user access to certain directory using chrooted jail on Debian 9”