I am setting up a backup server instance on EC2 with a public dns for its IP so that other servers on hostgator with dedicated IPs can send files to it.
I am confused as to how to use SCP with EC2 and the other questions on here regarding this subject confused me as they seemed to be trying for a different approach.
Would this simply work, or do I have to direct the EC2 instance to its keypair as an argument?
$ scp username@hostgatorip:/home/username/file.txt username2@ec2publicdns:/home/username2/
Thank you!