How to restrict ssh user directory?

Hello, I’m creating users (user1, user2, user3) would it be possible to allow access only to their directories? example (user1 access (/ home / user1)

Currently it is possible to leave the user’s directory, I would like to block.

Because I intend to use /bin/bash for each user to use rsync of their files, without seeing the files of other users.

On Debian 9 / Ubuntu 18.04 we support RSSH how ever it not got updated to the new distribution. We are working on a implementation for GNU Rush see