scp from local to private ec2 code example
Example 1: scp file from local to ec2
scp -i myAmazonKey.pem phpMyAdmin-3.4.5-all-languages.tar.gz [email protected]:~/.
Example 2: scp from local to ec2 in private subnet
scp -i ~/.ssh/your_key_name -o ProxyCommand="ssh [email protected] nc 172.31.8.133 22" ~/Desktop/my_gpg_key.asc [email protected]:~/