I can successfully SSH into my remote sever (amazon web services if that matters, I'm on a mac) using
ssh -i mykey.pem ubuntu@??.??.??.???
But when I try to use scp
scp -i test.php mykey.pem ubuntu@??.??.??.???
I get
scp: /test.php: Permission denied
My guess is that there something wrong with my permissions for test.php?
How would I change that?
I tried sudo and that did not work. Same error.