copy local file to aws ec2 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: scp file from local to ec2
scp -i myAmazonKey.pem phpMyAdmin-3.4.5-all-languages.tar.gz [email protected]:~/.