WinSCP not working correctly

  • Posted on December 3, 2013
  • nostrusAsked by nostrus


I set up my Debian 7.1 droplet according to the tutorials, and created a new user with admin rights. I want to use that user to copy files over with WinSCP, but I get “scp /path permission denied” messages, even after giving that user chown and chmod 777 rights to my /var/www folder.

What should still be set up?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Have you considered using SFTP, instead of SCP?<blockquote><h4>SCP vs. SFTP</h4>Given that both SCP and SFTP utilize the SSH protocol in connecting to another computer, the two methods are fairly equal in regard to security. SFTP has a slight edge in regard to efficiency, because an interrupted file-transfer can resume where it left off in the event of a broken connection that is later re-established.</blockquote><i>See</i> <a href=“”>How To Use Filezilla to Transfer and Manage Files Securely on your VPS</a>.

Ok, my lack of knowledge… I thought that chown is recursive by default, but it’s not. <br>In order to change ownership of a directory and all of its files, you have to use chown -R. <br>This solved my problem. (Still would be nice to include in the initial server setup tutorial, though :) )

drwxrwxrwx 2 customuser root 4096 Dec 3 06:56 . <br>drwxr-xr-x 12 root root 4096 Dec 3 06:56 … <br>-rw-r–r-- 1 root root 177 Dec 3 06:56 index.html