Report this

What is the reason for this report?

Export files using RSYNC and SSH on Mac

Posted on January 27, 2017

I am trying to move my local wordpress folder to the server, how when I tried to move the files, I keep getting the error permission denied.

My procedure /var/www/html$ user@100.200.300.1:/Applications/MAMP/htdocs/wordpresstest/



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!

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.

@jgacuca

Starting a new reply as the previous one is at it’s limit.

You’re not using root as I specified in the command I provided :-). As a result, unless the user you’re trying to upload as owns that directory, the command will fail.

For example, you’re trying to connect using jgacuca567 in the screenshot. If that user doesn’t own the directory /var/www/html, then that user will not be allowed to upload files to it.

You can see who owns the directory by running:

ls -al /var/www

You would need to run (on the Droplet):

chown -R jgacuca567:jgacuca567 /var/www/html

To change ownership of the files and directories if you plan on using that user with rsync. The root user doesn’t require any specific permissions simply because it’s root and root has access to read and write to any directory or file.

Please copy/paste the entire command and the entire output. What you provided is not a command.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.