Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2007 09:48:38 -0400
From:      "David Robillard" <david.robillard@gmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Cc:        L33T Networks <fbsdhelp@l33tnetworks.com>
Subject:   Re: Locking SSH Users to $HOME
Message-ID:  <226ae0c60704110648t162b5991pd98728f68b2a6082@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?226ae0c60704110648t162b5991pd98728f68b2a6082>