Skip to content
Advertisement

Why can’t I upload folders to a Linux EC2 Instance?

I have been uploading my files and folders to my Linux EC2 Instance using SSH for the past month. Yesterday I updated the Linux version, and since then I cannot upload folders to the Instance, but I can still upload files. Why is this happening and how can I fix it?

Here’s what I’m using to upload folders:

$ scp -i /Users/----/Desktop/-----.pem -rp /Users/----/Desktop/Website_Testing_Folder/politics ec2-user@-------:/var/www/html

(dashed out personal details)

Here’s the error I’m getting:

scp: /var/www/html/politics: Permission denied

Thanks for your effort!

Advertisement

Answer

It is possible the Linux upgrade changed the permission of the folder. Just ssh in and fix the folder permissions.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement