I am trying to upload files to a server I have been configuring using sftp. Therefore I am using the internal-sftp server of openSSH Server.
I tried to add following code to /etc/ssh/sshd_config
Match User web
ChrootDirectory /var/www
ForceCommand internal-sftp
But I always get the error Connection reset by peer. If I leave the code out, it works – but I am of course in the wrong directory (/home/web). What's the problem here and what can I do to achieve what I described?
/var/wwwsince the user didn't have any other permissions anyways – Deproblemify Oct 24 '15 at 09:10