Skip to main content

17.4) Transferring Files Between Unix/Linux Computers


You can transfer files between two unix computers (computerA and computerB) by doing the following.

You are on computerA and you want to transfer a file to computerB. If the file is called file.gif then you can transfer this file by typing the following on computerA:

scp file.gif username@computerB.address.ac.uk:

(Don’t forget to include the ‘:’ at the end). Where computer.address.ac.uk is the full name of computerB. (As in the previous section, using login earv047 and the computer called feeble.leeds.ac.uk the command would be scp file.tar earv047@feeble.leeds.ac.uk:).

You will have to enter your password and then the file will be transferred. You will remain on computerA, so you can use ssh to check the file was transferred by logging onto computerB and checking. Use:

ssh –l username computerB.address.ac.uk

and type ls to check the file is in the home directory.