简体   繁体   中英

How to upload file to AWS ec2 instance?

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  ubuntu@ec2-52-24-103-139.us-west-2.compute.amazonaws.com:~/var/

I am getting this error :

-bash: /home/nilay/Desktop/jumpbook.pem: Permission denied

How can I upload files to aws cloud server .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM