to copy file remotely and securely, use scp below is the generally usage
note: i am using IPs instead of hostnames and also assumes I am on first server.
$scp filename 18.104.22.168:/tmp/
the above command will copy the file from frist server to second servers /tmp direcotory
Yes you can automate the task using cron.