I've created a user and made his home directory /var/www/mysite/ftpdir
I've also added a Match user entry for this user in sshd_config
with a ChrootDirectory that points to /var/www/mysite
I've restarted ssh
to pick this up.
When I log in with sftp - the user still goes to the user's old directory ie /home/user
What am I missing?
/home/user
to the target?