I am trying to extract some .pem certificates files used to encrypt my server but for some reason cannot do it using SCP
I am unable to copy them over to my own machine
Here are the files in the EC2 instance
Not sure why they are showing as red, but after some reading saw that it means they are zipped
Errors when executing SCP command:
scp: /home/ec2-user/certificates/fullchain.pem: No such file or directory
scp: /home/ec2-user/certificates/privkey.pem: No such file or directory
scp: /home/ec2-user/certificates/chain.pem: No such file or directory
scp: /home/ec2-user/certificates/cert.pem: No such file or directory
Edit: Moved to another directory and copied again, set permissions to 777 using
sudo chmod 777 -R falltoyourdeathbe.co.uk/
but still cannot copy - any ideas? They are still showing as an archive no idea why scp still not working on .pem files but fine on readme
Edit 2: Various commands run to show that there is not a /home/archive directory and that the folder with the certificates now sits under /home/ec2-user/