Monday, November 26, 2012

How to transfer files to Amazon EC2 instance using FileZilla

SFTP access to Amazon EC2 using FileZilla

When using cloud service like Amazon EC2, most trivial task will be to get your data/files up the cloud. Amazon offers secure ftp (SFTP) service and gives instructions how to use it on command line.

But if you have many files stored in separate locations, it will be easier to use a GUI application like FileZilla. And best thing about FileZilla is that it works on Mac, Linux and Windows. Ubuntu has also included FileZilla in their repository and you can install it on Ubuntu using:

sudo apt-get install FileZilla

Before using FileZilla to upload files, make sure you follow the steps given in EC2 documentation, activate SSH and test it on the shell/command prompt.

Amazon uses authentication using key file and does not accept username & password combination, unlike other SFTP services. When you add a new site to FileZilla site manager, you wont find option to use key-file.

You need to import the key file in another location. Go to Edit --> Settings, you will find the option to upload keyfile under the SFTP option.

FileZilla will convert *.pem file to .ppk file which is Putty Private Key format and save it in a location you specify.

Now you can use upload files to your EC2 instance without a glitch. FileZilla will automatically authenticate using the added key file. You may add other key files along with Amazon EC2 keyfile, it will still authenticate you.

Related Posts Plugin for WordPress, Blogger...