UNIX machines like FreeBSD have a small utility called "scp" which is a utility which allows files to be copied between machines securely. Scp is an updated version of an older utility named "rcp". It works the same, except that information (including the password used to log in) is encrypted too.
The general form of this command is:
# scp source-specification destination-specification
# scp myfile myUser@sourceMachine:myFile
To copy a directory, use the -r (recursive) option. For example:
# scp -r myDir myUser@sourceMachine:myDir
To read more about this subject visit the following pages: