send files to ec2 instance code example
Example 1: send file to aws ec2 termnal
scp -i path/to/key file/to/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/file
scp -i path/to/key -r directory/to/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/directory
Example 2: aws ec2 upload file
scp -i ~/Downloads/file.pem local_image_file user@ec2_elastic_ip:/home/user/images/
Example 3: aws ubuntu file upload
$scp -i ~/Desktop/amazon.pem ~/Desktop/MS115.fa ubuntu@ec2-54-166-128-20.compute-1.amazonaws.com:~/data/