Can I confine my users to their /home/%u directory using only OpenSSH configuration? From instructions I found on the Internet, I stopped the SSH server and appended the following to the sshd_config
file:
Match group sftpusers
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
I then started the SSH server again.
FYI I have the users added to sftpusers
group
My users can still browse i.e cd /
and are able to use cat command to list file content (cat /usr/bin/test.sh
) in entire file structure on my system
I'm running Ubuntu Server 12.04 LTS.
chroot
to work with SSH the home dir must beroot
owned and 755 perm. Checkauth.log
for some clues.