How to connect to Amazon EC2 Instance using Filezilla?

How to connect to Amazon EC2 Instance using Filezilla?

In this post, I will show you how to connect to Amazon EC2 Instance using Filezilla.

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 Filezilla

Download Filezilla (Mine is windows 32-bit).

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.

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

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

  4. Now, click on the 'Save private key' button.

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

  6. Type the ppk file name of your choice and click on the 'Save' button.

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

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....

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

  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).
  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.
  5. Now paste the copied value to the Filezilla Host input box and click on the 'connect' button.

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

  7. Hurray! You are connected to your EC2 instance via Filezilla.

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.

Meet the Author