aws ec2 upload file code example Example: aws ec2 upload file scp -i ~/Downloads/file.pem local_image_file user@ec2_elastic_ip:/home/user/images/