CHROOT for SSH

Luc MAIGNAN luc.maignan at winxpert.com
Thu Jan 6 13:56:33 UTC 2011


Yes you're right kevin, it's a very good solution.

But to use it, I have to  put a lot of things in the home directory 
(bash, tty, ...) with a lot a different rights.

Is there a document which lists the 'minimal' things to put to get the 
solution work ?

BR

Le 03/01/11 19:55, Kevin Fenzi a écrit :
> On Mon, 03 Jan 2011 18:33:14 +0100
> Luc MAIGNAN<luc.maignan at winxpert.com>  wrote:
>
>> Hi,
>>
>> I gave an SSH access to my server to somebody. But I want (and only
>> for him) "chroot" him to its home.
>>
>> What is the easiest way to do this ?
> man sshd_config
>
> and look at 'ChrootDirectory' and 'Match'.
>
> You should be able to Match that user or users or group and set
> ChrootDirectory for them.
>
> kevin



More information about the users mailing list