Skip to content

SCP

SCP (Secure CoPy) is a simple way of transferring files between two machines that use the SSH protocol. SCP is available as a protocol choice in some graphical file transfer programs and also as a command line program on most Linux, Unix, and Mac OS X systems. SCP can copy single files, but will also recursively copy directory contents if given a directory name. An SSH key is required for SCP. Following is an example of transferring test.txt file from Scholar home directory to your local machine, make sure to use your username USERNAME:

1
2
3
localhost> scp USERNAME@scholar.rcac.purdue.edu:/home/USERNAME/test.txt .
Warning: Permanently added the xxxxxxx host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
test.txt                                                                    100%    0     0.0KB/s   00:00

Back to the Storage section