Use the SCP command to transfer files from a local host to a remote host or vice versa. Remember to have SSH running on the remote machine and know the user and password. Transfer files and directories.
Transferring files with secure copy (SCP) - SSH(Secure Shell)