'How to use SCP to copy file from my local system to remote AWS server
- I have created a
AWS server instance. - I have a
pemfile which i use to get access to the remoteAWSthrough my local system terminal - I have saved the file
pemfile in/home/downloads/xxx.pem
- I want to copy an image from location
/home/images/image.jpgto the server at/images - I did some research on the google and found out it is done through SCP
- I could not achieve the goal
How to use scp to copy an image from source( MY-Computer-Local ) to AWS(server)?
Thanks
Solution 1:[1]
'You should keep that folder in your local D drive, and open that folder from AWS instance and drag & drop that folder'
Solution 2:[2]
scp -i secrate_key.pem file_name.ext ec2-user@publicDNS:~/.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Suresh U |
| Solution 2 |
