how to send file to ec2 instance code example
Example 1: send file to aws ec2 termnal
// To copy one file
scp -i path/to/key file/to/copy [email protected]:path/to/file
// To copy an entire directory
scp -i path/to/key -r directory/to/copy [email protected]:path/to/directory
Example 2: aws ubuntu file upload
$scp -i ~/Desktop/amazon.pem ~/Desktop/MS115.fa [email protected]:~/data/