Restrict users to their home dir only

Is it possible to restrict users from accessing files and directories outside their home dir /home/user in ssh? Thanks.

This has been discussed several times here in the forums:

Search the forums for “ssh chroot” and you’ll find lots and lots and lots of discussion.

Basically, the answer is: You don’t want it, even if you think you do. And, you don’t need it.

Thanks for the quick reply Joe and sorry if I asked the same question. Kindly delete this post if necessary. Thanks again for the hint.