Skip to content

File transfer

Eric Marty edited this page Jul 19, 2021 · 5 revisions

Quick reference

  1. Make sure you can access the remote computer via SSH. Instructions on that are available here.
  2. Transfer the file using the Secure Copy Protocol (SCP). On Linux and Mac, this can be done using the scp command line program as follows: scp ebodea@172.18.244.86:/home/ebodea/src/myplot.pdf .. In this example, I've copied a file called myplot.pdf from the location /home/ebodea/src/myplot.pdf on the high-memory machine to the current directory of my terminal on the computer I've entered the command. (The . stands for current directory.) As usual, you will need to substitute your own username for ebodea to run this example on your own computer. Here is another example: scp -P 9922 renikaul@172.18.244.88:/home/renikaul/Desktop/Aphani/New_Model/simulations/dummy.txt . In this example, the username is renikaul and -P 9922 tells scp to use port 9922, which is necessary on the other high-memory machine.

Windows users using putty should also substitute pscp for scp.

Brief introduction

The scp command is used in a similar way to the cp command; the two arguments it needs are (1) the path to the file you want to copy and (2) the destination of that file. If a path is prefixed by an IP address and a colon, then the path is interpreted as being on the machine at the given IP address.

Lab Links

Clone this wiki locally