Can some guru help me out with a command line instruction that will copy a file from one box to another, in a standard ACID installation?

The boxes are behind a common router and have different port numbers for SSH (of course). If any config files changes are required, please show what is needed.

 

Secondly

If possible, is there a way to direct the output of this transfer to “stdin“ so that it can go directly into another program?

 

Thanks

Ken