Translations:Transferring data/28/en

From Alliance Doc
Jump to navigation Jump to search

SCP stands for Secure Copy Protocol. Like SFTP it uses the SSH protocol to encrypt data being transferred. It does not support synchronization like Globus or rsync. Some examples of the most common use of SCP include

Question.png
[name@server ~]$ scp foo.txt username@beluga.computecanada.ca:work/

which will copy the file foo.txt from the current directory on my local computer to the directory $HOME/work on the cluster Béluga. To copy a file, output.dat from my project space on the cluster Cedar to my local computer I can use a command like

Question.png
[name@server ~]$ scp username@cedar.computecanada.ca:projects/def-jdoe/username/results/output.dat .

Many other examples of the use of SCP are shown here. Note that you always execute this scp command on your local computer, not the remote cluster - the SCP connection, regardless of whether you are transferring data to or from the remote cluster, should always be initiated from your local computer.