scp from local to ec2 in private subnet code example
Example: 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 ubuntu@172.31.8.133:~/
scp -i ~/.ssh/your_key_name -o ProxyCommand="ssh [email protected] nc 172.31.8.133 22" ~/Desktop/my_gpg_key.asc ubuntu@172.31.8.133:~/