scp files bastion host to private subnet ssm code example
Example: scp into private instance using proxyCommand
scp -i ~/.ssh/your_key_name -o ProxyCommand="ssh [email protected] nc 172.31.8.133 22" ~/Desktop/my_gpg_key.asc [email protected]:~/
scp -i ~/.ssh/your_key_name -o ProxyCommand="ssh [email protected] nc 172.31.8.133 22" ~/Desktop/my_gpg_key.asc [email protected]:~/