aws ubuntu file upload

C++
// 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/directoryscp -i ~/Downloads/file.pem local_image_file user@ec2_elastic_ip:/home/user/images/
$scp -i ~/Desktop/amazon.pem ~/Desktop/MS115.fa  [email protected]:~/data/

Source

Also in C++: