SCP Secure Copy
Upload file to another server with secure copy SCP
scp /home/httpd/xyz/my_mod/my_mod.module orjan@127.1.1.1:/home/orjan/upload
Or if you want to copy an entire folder structure with sub folders.
scp -r /var/www/mysource/* root@123.456.789.123:/var/www/mydestination
Remember to check the file permission afterwards in the destination folder