/etc/ssh/sshd_config:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp internal-sftp Match group chrooted ChrootDirectory /www/sites X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp |
/etc/passwd:
1 |
testuser:x:1002:1002::/www/sites/testuser:/usr/lib/sftp-server |