Reputation: 2331
Hey I am trying to upload a folder of file from my local ubuntu os to aws ubuntu server for that I have tried filezilla and it work perfect but when I am trying to use this command :
sudo scp -i ~/Desktop/jumpbook.pem ~/Desktop/ommlogo.png [email protected]:~/var/
I am getting this error :
-bash: /home/nilay/Desktop/jumpbook.pem: Permission denied
How can I upload files to aws cloud server .
Upvotes: 0
Views: 1387
Reputation: 306
Use ls -l /home/nilay/Desktop/jumpbook.pem
to check pem file permissions.
It should be -r--------. Otherwise, execute chmod 400 /home/nilay/Desktop/jumpbook.pem
and try scp again.
Upvotes: 3