All of the following commands are to be run on the remote machine where the files to copy are
We need a key to connect with SSH
ssh-keygen -t rsa -b 4096
Put that pub key in the destination machine's ~/.ssh/authorized_keys
(asuming destination SSH is up and configured for accepting keys)
cat ~/.ssh/id_rsa.pub