Locking SSH Users to $HOME
David Robillard
david.robillard at gmail.com
Wed Apr 11 13:48:39 UTC 2007
> Using the SSHD server, how can I lock users SSH'ing into a box into their
> home directory, without having access to the /usr/home directory as a
> whole?
You can try to use the security/ssh2 port to replace the base system's
sshd(8). This version of ssh supports additional chroot configuration
options which lets you do exactly what you're looking for.
Here's a link to the port:
http://www.freebsd.org/cgi/url.cgi?ports/security/ssh2/pkg-descr
Here's an article which shows you how to do what your looking for:
http://freebsdrocks.net/index.php?option=com_content&task=view&id=51&Itemid=1
Have fun,
David
--
David Robillard
UNIX systems administrator & Oracle DBA
CISSP, RHCE & Sun Certified Security Administrator
Montreal: +1 514 966 0122
More information about the freebsd-questions
mailing list