Sometimes copying files produces the wrong file permissions on the server. These two commands will get the majority of your files and folders back to where they need to be. You’ll also need to update the .htaccess and probably the updates folder with more restrictive permissions.

cd ~/public_html
chmod -R 0755 *
chmod 0644 $(find . ! -type d)