O'Reilly logo

Mastering Bash by Giorgio Zarrelli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required