Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6813211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:32:36+00:00 2026-05-26T20:32:36+00:00

I have setup a new EC2 instance on AWS and I’m trying to get

  • 0

I have setup a new EC2 instance on AWS and I’m trying to get FTP working to upload my application. I have installed VSFTPD as standard, so I haven’t changed anything in the config file (/etc/vsftpd/vsftpd.conf).

I have not set my port 21 in the security group, because I’m doing it through SSH. I log into my EC2 through termal like so


sudo ssh -L 21:localhost:21 -vi my-key-pair ec2-user@ec2-instance

I open up filezilla and log into local host. Everything goes fine until it comes to listing the directory structure. I can log in and right and everything seems fine as you can see below:


Status: Resolving address of localhost
Status: Connecting to [::1]:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome to EC2 FTP service.
Command: USER anonymous
Response: 331 Please specify the password.
Command: PASS ******
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: EPSV
Response: 229 Entering Extended Passive Mode (|||37302|).
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

Is there something which I’m missing in my config file. A setting which needs to be set or turned off. I thought it was great that it connected but when it timed out you could picture my face. It meant time to start trawling the net try and find the answer! Now with no luck.

I’m using the standard Amazon AMI 64 bit. I have a traditional lamp setup.

Can anyone steer me in the right direction? I have read a lot about getting this working but they are all incomplete, as if they got bored half way through typing up how to do it.

I would love to hear how you guys do it as well. If it makes life easier. How do you upload your apps to a EC2 instance? (Steps please – it saves a lot of time plus it is a great resource for others.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:32:37+00:00Added an answer on May 26, 2026 at 8:32 pm

    I figured it out, after the direction help by Antti Haapala.

    You don’t even need VSFTP setup on the instance created. All you have to do is make sure the settings are right in FileZilla.

    This is what I did (I’m on a mac so it should be similar on windows):

    1. Open up file zilla and go to preferences.
    2. Under preferences click sftp and add a new key. This is your key pair for your ec2 instance. You will have to convert it to the format FileZilla uses. It will give you a prompt for the conversion
    3. Click okay and go back to site manager
    4. In site manager enter in your EC2 public address, this can also be your elastic IP
    5. Make sure the protocol is set to SFTP
    6. Put in the user name of ec2-user
    7. Remove everything from the password field – make it blank
    8. All done! Now connect.

    That’s it you can now traverse your EC2 system. There is a catch. Because you are logged in as ec2-user and not root you will not be able to modify anything. To get around this, change the group ownership of the directory where your application will lie (/var/www/html) or what ever. I would change it so it is on a EBS volume. 😉 Also make sure this group has read write and execute permissions. The group for the ec2-user is ec2-user. Leave everyone else as nothing. So the command you use while logged in via ssh


    sudo chgrp ec2-user file/folder
    sudo chmod 770 file/folder

    Hope this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have previously setup a EC2 instance on Ubuntu 10.04 and setup the necessary
I have a setup on a EC2 instance that uses Whirr to spin up
So I have SSH working now no problemo and I have setup a new
I have setup new instance of Solr indexing on a website. I want Solr
I a xampp setup for php. I have created a new repository at D:/xampp/htdocs/cart
I have setup a git repository in a linux server, and installed the latest
I have setup a new server and copyed my website on to it and
I am new to LDAP and JNDI. I have setup a LDAP server with
Hi have setup a UITableViewCell from a nib file and everything is working as
I'm trying to create a setup CAB of an application for a mobile device.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.