/Downloads
in local machineI am trying to copy file to /images
folder in AWS server
What command can i use ?
Thanks,
You can use plain scp
:
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)).