How to connect to Amazon EC2 Instance using Filezilla?

Answer

In this post, I will tell you what is FileZilla and Amazon EC2 instance and how to connect to Amazon EC2 Instance using FileZilla.

What is FileZilla?

FileZilla is a open source FTP, FTPS and SFTP software that allows you to transfer your file from your local machine to the Server.

What is Amazon EC2 Instance?

Amazon EC2 instance is the varying combinations of CPU, memory, storage, and networking capacity that allow you to run your websites.

The best part of the Amazon EC2 instance is that it will allow you to scale your resources to the requirements of your target workload.

Required Tools

To connect to Amazon EC2 Instance using FileZilla, you need 2 tools

  1. PuTTYgen - To convert your .pem file to .ppk file. Because FileZilla accepts .ppk file only.

  2. FileZilla - To upload all your files from your PC to EC2 instance.

Download PuTTYgen

Download PuTTYgen (Mine is windows 32-bit).

Download PuTTYgen Page

Download FileZilla

Download FileZilla (Mine is windows 32-bit).

Download FileZilla Page

All required software to connect to Amazon EC2 instance using FileZilla is downloaded and installed.

Convert .pem file to .ppk file

To Convert your .pem (that you created when you launched the instance) to .ppk. Do the following:

  1. Open PuTTYgen and click on the 'load' button.

    PuTTYgen Software Screenshot
  2. Change the file type to 'All Files(".")' and locate your .pem file.

    PuTTYgen locate file
  3. Click on your .pem file. Now, the PuTTYgen Notice dialog box appears, click on the 'OK' button.

    PuTTYgen Generate ppk file
  4. Now, click on the 'Save private key' button.

    PuTTYgen Save Private Key
  5. Now, the PuTTYgen Warning window appears, click on the 'Yes' button to save your key file without a passphrase to protect it.

    PuTTYgen Warning Pop up Window
  6. Type the ppk file name of your choice and click on the 'Save' button.

    PuTTYgen Type .ppk file name
  7. Hurry! you have converted your .pem file to .ppk file successfully.

    PuTTYgen final output

Setting up FileZilla

Now we will set up FileZilla to upload our local files to the Amazon EC2 instance. To do so, please follow these steps:

  1. Open up filezilla and click on the menu FileSite Manager....

    FileZilla Open
  2. The 'Site Manager' Pop up window will appear. Click on the New site and type the name of your choice.

    FileZilla Sitemanager Open
  3. From the same window, do the following configuration:

    • Protocol ⟶ 'SFTP - SSH File Transfer Protocol'.
    • Logon Type ⟶ 'Key file'
    • User ⟶ 'ubuntu'
    • Key file ⟶ Locate your .ppk file by clicking on the 'Browser...' button.
    • Host ⟶ Your EC2 instance 'Public DNS (IPv4)' name (follow next step).
    FileZilla Configuration
  4. Open up your EC2 instance Page from 'AWS Management Console' and do the following:

    1. Click on the Instances on the left side menu.
    2. Click on the Instance that you want to connect from FileZilla.
    3. Click on the Description tab in the bottom menu.
    4. Copy your Public DNS (IPv4) name.
    EC2 Public DNS Name
  5. Now paste the copied value to the FileZilla Host input box and click on the 'connect' button.

    Paste DNS Name and click Connect
  6. Now, the 'Unknown host key' window will appear. Tick the checkbox and click on the 'OK' button.

    FileZilla unknown host key window
  7. Hurray! You are connected to your EC2 instance via FileZilla.

    FileZilla Successfully Connected

Related Post

How to Deploy Node.js App in EC2 instance?

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author