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!
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.
You may want to take a look at the guide here at DigitalOcean which covers rsync and syncing local to remote.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.