As long as you have TCP port 22 (default SSH port) open between two hosts, a great and efficient way to copy files is using the scp command.
scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]
- Preserves the modification and access times, as well as the permissions of the source-file in the destination-file
- Do not display the progress bar
- Recursive, so it copies the contents of the source-file (directory in this case) recursively
- Displays debugging messages
scp -r * user@host:/var/www/app/files/priv/
This will copy all files from the current directory on the current host to the /var/www/app/files/priv directory on the remote host