Comments on How to create a jailed ssh user with Jailkit on Debian Wheezy
How to create a jailed ssh user with Jailkit on Debian Wheezy This document describes how to install and configure Jailkit in Debian Wheezy Server. Jailkit is a set of utilities to limit user accounts to specific files using chroot() and or specific commands. Setting up a chroot shell, a shell limited to some specific command, or a daemon inside a chroot jail is a lot easier and can be automated using these utilities.
5 Comment(s)
Comments
Great tutorial! This tutorial was written for Debian Wheezy. As I'm using the recently released Debian Jessie I encountered a few minor issues using the tutorial. I posted a list of (hopefully) helpful comments in the forum.
I did a copy/paste of this tutorial so I can learn it in a fresh Debian Wheezy install in Virtualbox and when I came to the line "Now Jail is ready, just add the user inside the environment:", I got an invalid jail error and the whole install failed. I tried this four times. No clue as to what's going on. Cop and pasted everything as root. Ideas?
Hi,
Work perfectly on Debian Jessie 8.3Tank's a lot dude !
adding bash as a shell in the /etc/passwd will make all what you have done void... not a jail at all.
You mix up passwd files here. In this tutorial, bash is not added in /etc/passwd, it is added in /jail/etc/passwd which is the passwd file inside the jail. Adding bash as shell there is required and does not make the jail void.