Secure Shell Copying
To copy files to and from local or remote computers, use the scp (secure copy) command. The syntax is identical to ordinary copying with cp.
scp FILE_TO_COPY [MORE_FILES_TO_COPY] DESTINATION
Unlike cp, the file to copy and/or their destination may be a remote computer. The user must specify the remote machine name and directory as a prefix. So for example, to copy a local file named myfile to my remote home directory ("/Users/kevinernste") on b27.music.cornell.edu, I would type:
scp myfile b27.music.cornell.edu:/Users/kevinernste/
Note the colon ":" between the machine name and the directory in the destination argument. This syntax should be followed carefully.
As with cp (and other Unix commands), all unix "wildcards" will work, so:
scp * b27.music.cornell.edu:/Users/kevinernste/
...will copy all files in the current directory to the destination directory on b27. To directories and subdirectories, just add "-r", so:
scp -r * b27.music.cornell.edu:/Users/kevinernste/