Limitting SSH access

Matthew Seaman m.seaman at
Wed May 4 11:35:35 UTC 2011

On 04/05/2011 10:08, Jack Raats wrote:
> I have a question concerning SSH op a FreeBSD 7.4-STABLE server.
> Is it possible to limit the SSH access? 
> I want t o restrict a user to his own home directory. 
> So that if he connects to the server with SSH he only can go to his own home dir.
> Also the same for sftp...

I believe you will need to install a version of OpenSSH from ports to
get that functionality.  It's the CHROOT config option in



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID: matthew at               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list