Skip to main content

2.7) File Transfer From Linux/Unix


The SSH tools come bundled with a command line file transfer utility, secure copy (scp). Using scp is very similar to the standard copy (cp) command in Linux/Unix:

$ scp <target> <destination>

Where <target> and <destination> correspond to the files being transferred. A local file is specified by its filename, a remote file is indicated through the syntax <username>@machine:path. If a slash (/) follows the colon (:), the path is taken from the root of the filesystem, however without a / the path is taken relative to your home directory. e.g. to upload a local file to your home directory on ARC2 issue:

$ scp file <username>@arc2.leeds.ac.uk:

Similarly, a file can be downloaded with:

$ scp <username>@arc1.leeds.ac.uk:file ./

Note that ./ will put the file in the current directory on your local machine.