Install rssh by entering the following commands in the terminal:
sudo apt update sudo apt install rssh
Description:
Restricted shell allowing scp, sftp, cvs, svn, rsync or rdist
rssh is a restricted shell, used as a login shell, that allows users to perform only scp, sftp, cvs, svnserve (Subversion), rdist, and/or rsync operations. It can also optionally chroot user logins into a restricted jail.
Homepage: http://www.pizzashack.org/rssh/
Version: 2.3.4-7
Section: universe/net