Restricted shells for OpenSSH

Even though the restricted shell for OpenSSH ( 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 ...

Get Mastering Bash now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.