Re: Limitting SSH access



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
security/openssh-portable

Cheers

Matthew

--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew@xxxxxxxxxxxxxxxxxxxxxx Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Re: Limitting SSH access
    ... Is it possible to limit the SSH access? ... I want t o restrict a user to his own home directory. ...
    (freebsd-questions)
  • Re: restrict telnet/ssh but allow ftp
    ... there are a couple users I want to give ssh access to. ... > How can I restrict their home directory (chroot) as well as limit what ...
    (comp.os.linux.security)
  • RE: Restricting access to home directory
    ... Junior UNIX Administrator ... Restricting access to home directory ... If there was an easy way to restrict users to their home directories using ...
    (freebsd-questions)
  • RE: restrict FreeBSD users to their home directory
    ... You can give the users rbash as their shell. ... restrict FreeBSD users to their home directory ...
    (freebsd-questions)
  • Re: UFS permissions
    ... then that user can't be the owner of the file. ... > I want to restrict user from deleting file from HIS home directory. ...
    (comp.unix.solaris)