Change root directory of sftp

My bad, using ChrootDirectory %h/web instead of ChrootDirectory %h in /etc/ssh/sshd_config works well.

1 Like