How To Set Up A Secure Chrooted Jail With RSSH
In this guide I will show you how to install and configure Restricted SSH (rssh) using the default port 22, create a chrooted jail for your users and how to properly secure it all afterwards.
This method is tried and tested as I originally wrote this for my own benefit when building servers at work.
There are 5 steps:
- Installing rssh
- Configuring rssh
- Building the chrooted jail
- Locking it all down
- Adding users with rssh over SCP and/or SFTP access to the jail.
Confirmed compatable with default installations of CentOS 5.2 and Redhat 5.2
During this guide the CentOS/Redhat default webroot of /var/www/html will be used.
Let’s get started!

