Quote:
|
Originally Posted by guest
Is there an easy way to just creating a jailed directory and create a user/password for it and allow ssh?
|
Actually, no. This is nontrivial to do properly. Moreover, it introduces risk, because in this scenario chroot generally runs with elevated privileges (and it has a history of vulnerabilities and attack methods).
That said, I
think openssh portable has chroot patches written for it (search the 'net). Alternatively, I have been OK with putting shell users in a FreeBSD Jail for the scenario you're describing. This would likely be akin to Linux-VServer for you.
So, again, the short answer is that there is no easy way to do this properly (IMO).