Using command-line tools to copy data
The research environment login node is accessible via SSH, allowing use of the
sftp commands to transfer data from your local client machine.
Linux and Mac users can use in-built SSH support to copy files. To copy file mydata.zip to your research environment on IP address 184.108.40.206, use the command:
scp -i mykeyfile.pem mydata.zip firstname.lastname@example.org:.
- replace mykeyfile.pem with the name of your SSH public key
- replace flight with your username on the research environment
Windows users can download and install the pscp command to perform the same operation (for this you will need your .pem key in .ppk format, see connecting from Windows with Putty):
pscp -i mykeyfile.ppk mydata.zip email@example.com:/users/flight/.
scp and the
pscp commands take the parameter
-r to recursively copy entire directories of files to the research environment.
To retrieve files from the research environment, simply specify the location of the remote file first in the scp command, followed by the location on the local system to put the file; e.g.
To copy file myresults.zip from your research environment on IP address 220.127.116.11 to your local Linux or Mac client:
scp -i mykeyfile.pem firstname.lastname@example.org:/users/flight/myresults.zip .