Export files using RSYNC and SSH on Mac

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/

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.


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.

@Woet, Making Progress, I made a user using dscl, however the permissions is still being denied.

Folder Upload

@Woet I did, and it failed, see error.

On Mac