How to setup your website in Amazon Web Services (Part 3)

This is the third part of “Setting up website in Amazon Web Services”. In this part of the tutorial, I’ll show you how to upload files on EC2 instance using FileZilla.

It has 2 steps:

Step 1. Add public key to FileZilla

Step 2. Configure the site


Screen Shot 2015-07-11 at 8.57.12 AM

Step 1. Add public key to FileZilla

Open FileZilla

1. FileZilla > Settings (In windows it may be in Window menu)

2. From left panel, select SFTP

3. In right panel, click on Add keyfile.

4. Select your public key. (FileZilla may warn about converting the file into FileZilla format. Click yes.

5. Save the new FileZilla format file in the same place where you kept your public key.

6. Click OK to finish “adding public key” process.


Screen Shot 2015-07-11 at 8.58.03 AM

Step 2. Configure the site

1. Open FileZilla. Go to File > Site Manager.

2. From left side of the Site Manager select “New Site”. You can give it a name. I used “MyAWS”.

3. In right panel put the following setup:

Host: EC2’s Public IP

Port: 22 (or you can leave it blank)

Protocol: SFTP – SSH File Transfer Protocol

Logon Type: Normal

User: ec2-user / root ( see the note below)

Now click connect. FileZilla may warn you about Unknown host key. Just click okay.

If you are running apache on the EC2 instance, then your files are located in /var/www/html/

Now redirect to /var/www/html/ and upload your file on server.


Leave a Reply