Apparently there is a bug in UBUNTU 14.04 where the VSFTP does not seem to work It is a reported bug by Ubuntu kernel and there is an updated kernel which works. Unfortunately for the Amazon EC2 it seems that they still have the older version. There is an option to get the latest Ubuntu Kernel and update it but that will be great with a fresh install. For those installed the option seems to be limited.
The PROFTPD seems to be working.
Here are the details.
LOGIN IN using the pem key via putty:
check if the port 21 is open
Disable the ubuntu firewall: ( if you get unable to connect, it is due to ubuntu firewall)
IMPORTANT:
Now login to the amazon aws and make sure that the security group allows the port 21 and the passive ports ( here 13000 13100 ) is opened.
The PROFTPD seems to be working.
Here are the details.
LOGIN IN using the pem key via putty:
- #sudo su root -
root# apt-get install proftpd
- Edit the proftd.conf in /etc/proftpd/proftpd.conf
- vi /etc/proftpd/proftpd.confg
- Make sure port 21 is not commented out
- Make the below changes.
- # In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
PassivePorts 13000 13100
# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
MasqueradeAddress 52.74.103.173 - ( THIS NEEDS TO BE IP ADDRESS)
- restart the service.
- services proftpd restart
check if the port 21 is open
:/home/ubuntu# netstat -nltp
Disable the ubuntu firewall: ( if you get unable to connect, it is due to ubuntu firewall)
sudo ufw disable
IMPORTANT:
Now login to the amazon aws and make sure that the security group allows the port 21 and the passive ports ( here 13000 13100 ) is opened.
Comments