Our goals for this lesson are:

• Transfer a file from a remote machine to your computer with FileZilla
• Transfer a file from your computer to a remote machine with FileZilla
• Name other tools that can be used for file transfer

An example of this would be:

$cd ~$ wget https://static.pexels.com/photos/104827/cat-pet-animal-domestic-104827.jpeg


And now, you will have a file named cat-pet-animal-domestic-104827.jpeg on your remote instance in our home directory.

Now we have a conundrum! We have downloaded a file that we know is a cat photo, but we can’t view it on our remote machine! Let’s use FileZilla to facilitate the transfer so we can take a look.

## Transfer Files From Your Instance with Filezilla¶

Let’s pretend that we didn’t just grab that cat photo from the internet, and we have something unique that we would like to view. For this, wget would not work. Instead, you can use FileZilla to transfer a file from your local machine to a remote instance, or vice versa.

### Open the site manager¶

Open FileZilla, and click on the File tab. Choose ‘Site Manager’.

### Get The Key File¶

Within the ‘Site Manager’ window, do the following:

1. Click on ‘New Site’, and name it something intuitive (e.g. ANGUS or jetstream_angus)
2. Host: address of your cloud instance. Should be of the form W.X.Y.Z.
3. Protocol: SFTP - SSH File Transfer Protocol
4. Logon Type: Key file
5. User: tx160085
In FileZilla, on the left side of the screen navigate to the location you would like to save the file, and on the right side of the screen navigate through your remote directory to the file ~/cat-pet-animal-domestic-104827.jpeg. Double click on the .jpeg file to transfer a copy, or click and drag over to the right hand panel.
We could also use scp or rsync to transfer files. These are command line utilities. If you’re transferring a large datafile, rsync may be slightly better, because if the download fails it will restart from where it left off.