'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 pem file which i use to get access to the remote AWS through my local system terminal
  • I have saved the file pem file in /home/downloads/xxx.pem

  • I want to copy an image from location /home/images/image.jpg to 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