I have 2 Linux machines (CentOS), and I want to transfer a file from one of them to a directory on the other. A co-worker suggested using scp. I've looked at the official docs, and tried getting it to work to no avail.
Server names are thing1.me.org and thing2.me.org; if I am on thing1, and want to SSH into thing2, I just type the following command, and I'm in.
I tried doing the same for SCP, and had no luck. I tried all sorts of variants, but I'm getting nowhere.
scp myfile.txt thing2.me.org/opt/app/ scp myfile.txt ssh://thing2.me.org/opt/app
Do you have any advice?