Restricted shells for OpenSSH
Even though the restricted shell for OpenSSH (http://www.pizzashack.org/rssh/) is not strictly a shell tool; its simplicity makes it a good candidate for helping to keep the house clean when some visitor knocks on wood. Rssh is available for a variety of distributions and platforms and offers a restricted shell allowing not only scp and ftp, but also csv, rdist , and rsync. So, we can create accounts available for file copy or synchronization without allowing a full shell access; and this can be handy to keep things on a low profile and lower the server exposure to attacks.
The first step consists in installing rssh from a package or from a source. In our example, we will rely on a package since the distribution ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access