A tutorial on TecMint's website demonstrates how to use a Chrooted jail to limit SSH user access to a particular directory.
Restrict SSH User Access to Home Directory Using Chrooted Jail
In this article, we will explain to you how to restrict SSH user access to a specific directory using chrooted jail in Linux systems.
Restrict SSH User Access to Home Directory Using Chrooted Jail