chroot ssh user

oxzhor

Dabbler
Joined
Sep 19, 2016
Messages
21
Hi all,

I create an dataset and user for the specific dataset.
But if i ssh with this user i can browse the whole NAS this is of course not the intention :).

After searching i found http://olddoc.freenas.org/index.php/SSH but is only for sftp and i need ssh access so no solution for me.

How can i chroot an ssh user to his home with FreeNAS?

Thanks for your reply.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Simple answer... use a jail and only mount what you want the user to see.

You will probably see a lot of suggestions about how FreeNAS isn't meant to provide SSH access directly to users other than the admin/root.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
Simple answer... use a jail and only mount what you want the user to see.

You will probably see a lot of suggestions about how FreeNAS isn't meant to provide SSH access directly to users other than the admin/root.
That is a great answer! Thanks for sharing.
 
Top