Can not create SFTP user Linode Debian 7
Now, i did it, but when i try to connect i get broken pipe or connection rejected by peer
what i did is this:
$ adduser --home /var/www/xxxxxx.com/public_html/directory/ username
$ chown username:username /var/www/xxxxxx.com/public_html/directory/
$ chmod 755 /var/www/xxxxxx.com/public_html/directory/
$ nano /etc/ssh/sshd_config
In /etc/ssh/sshd_config add following lines
Match User username
ChrootDirectory /var/www/xxxxxx.com/public_html/directory/
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
What im doing wrong?