Skip to content

File transfer

Eamon O'Dea edited this page Aug 9, 2018 · 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. As usual, you will need to substitute you own username for ebodea to run this example on your own computer. 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