scp to ec2 instance code example
Example 1: secure copy to aws
scp -i /directory/to/abc.pem /your/local/file/to/copy [email protected]:path/to/file
Example 2: scp file from local to ec2
scp -i myAmazonKey.pem phpMyAdmin-3.4.5-all-languages.tar.gz [email protected]:~/.