I need that be SSH, not SFTP access.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
<br>I need that ssh users just access your root directory.
<br>Example: user Joe should jail in /home/joe/
<br>I need that be SSH, not SFTP access.
Take a look at <a href=“https://www.digitalocean.com/community/articles/how-to-restrict-log-in-capabilities-of-users-on-ubuntu”>https://www.digitalocean.com/community/articles/how-to-restrict-log-in-capabilities-of-users-on-ubuntu</a>. Does that help?