How to use scp command to upload file to aws server
- I have .pem file in
/Downloadsin local machine
- I am trying to copy file to
/imagesfolder in AWS server
What command can i use ?
You can use plain
scp -i ~/Downloads/file.pem local_image_file user@ec2_elastic_ip:/home/user/images/
You need to put an Elastic IP to the EC2 instance, open port 22 to your local machine IP in the EC2 instance security group, and use the right user (it can be ec2-user, admin or ubuntu (look at the AMI documentation)).