Setting up a chroot sftp on debian server
- by Kevin Duke
I'm trying to allow a user "user" to access my server by either sftp or ssh. I want to jail them into a directory with chroot. I read the instructions here however it does not work.
I did the following:
useradd user
modify /etc/ssh/sshd_config and added
Match User user
ForceCommand internal-sftp
ChrootDirectory /home/duke/aa/smart
to the…