Simple jail for user with open-ssh
Posted
by
Vikram
on Server Fault
See other posts from Server Fault
or by Vikram
Published on 2012-10-04T19:12:58Z
Indexed on
2012/10/04
21:40 UTC
Read the original article
Hit count: 372
ssh
|ubuntu-12.04
Can I confine my users to their /home/%u directory using simply open-ssh configuration? I did the following from what I found on the Internet Stopped the server To the sshd_config file appended the following
Match group sftpusers
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
started the server
FYI I have the users added to sftpusers group
My users can still access entire file structure on my system
Ubuntu Server 12.04 LTS with open-ssh installed
© Server Fault or respective owner