SFTP chrooted access - easy way without external tools
Nacházíte se: / Linux / How to ...
1) Create sftp group
groupadd sftp
2) Edit your sshd config
Add to end of /etc/ssh/sshd_config:
Subsystem sftp internal-sftp
Match Group sftp
ChrootDirectory %h
ForceCommand internal-sftp
/etc/init.d/ssh restart
3) Just add new user :)
adduser --home /home/user_chrooted_home --shell /bin/false --ingroup sftp sftp-my-account