I have configured sftp access for user using this guide: Linux shell to restrict sftp users to their home directories?
I have problem though.
I have taken all steps. I have chown'ed root:user the home folder and I set permissions to 755.
I can login normally using SFTP, however I can NOT transfer files, can NOT mkdir directories. If I change permissions to 777 it's ok do edit everything. However this is the thing I don't want. Additionally after exiting sftp and reconnecting then connection is reset by peer (due to setting 777).
Anyone had similar problem? What I am doing wrong?