Pages

Copy files from cluster to local and vice versa using SCP

To know the details about 'scp', type man scp in the terminal.

To copy files from the cluster to local system

scp -P 4200 userName@cluster.domain:/home/path/to/the/file/ .     

(notice that the 'dot' at the end is for copying files to the current folder)

Similarly, to copy the files from current folder to the cluster

scp ./fileName -P 4200 userName@cluster.domain:/home/path/to/directory

To copy a directory and its files and subdirectories to to the cluster

scp -r ./Dir1 -P 4200 userName@cluster.domain:/home/path/to/directory

Copy a directory recursively from cluster to your local system

scp -P -r 4200 userName@cluster.domain:/home/Dir1 .     




No comments:

Post a Comment

You may be interested in these posts

Error in image file conversion: convert-im6.q16: not authorized `test.eps' @ error/constitute.c/WriteImage/1037.

This error is because of the vulnerability. This allows remote execution of code using image formats. So, some Linux distributions by defaul...