proftpd usage in AWS Ubuntu (LAMPP)

I started a new AWS ec2 instance, it is "Ubuntu Server 14.04 LTS (HVM), SSD Volume Type", note down a few points here,

1, use the same key pair to access to the AWS EC2 instance, as import the private key file into the putty and WinSCP.
2, stop and start your instance in the AWS console panel, the AWS will assign a new public DNS and IP to your ec2 instance, my new Ubuntu public ip address is 52.77.215.251.
3, Free Tier eligible (t2.micro only)
4, Default ssh Usernames For Connecting To EC2 Instances, refer to this Link, Ubuntu username is 'ubuntu', RHEL username is 'ec2-user'.

Installed the Lampp, last time I was using vsftpd as ftp service, this time in Ubuntu, I use the proftpd which comes with the LAMPP package as ftp service, below is the procedure to setup,

1, check the proftpd is up and running,
ubuntu@ip-172-31-23-55:~$ sudo netstat -ntulp | grep proftpd
tcp6 0 0 :::21 :::* LISTEN 7839/proftpd: (acce
ubuntu@ip-172-31-23-55:~$

2, create user account to access the ftp,
groupadd ftp
usermod -G ftp huilin
mkdir -p /home/huilin
chown root.ftp /home/huilin
chmod 775 /home/huilin

3, proftp configuration, "emacs /opt/lampp/etc/proftpd.conf", add below lines, to make the folder /home/huilin to be accessible by ftp,
<Directory /home/huilin/*>
AllowOverwrite on
</Directory>
4, passive mode error "Status: Server sent passive reply with unroutable address. Using server address instead.", needs to set to support the passive mode, as the ftp is behind the NAT. added below two lines, 52.77.215.251 is the server public address.
PassivePorts 60000 65000
MasqueradeAddress 52.77.215.251 # using an IP address

5, restart the proftpd and test the connection by FileZilla,
sudo /opt/lampp/lampp restart

Reference link:
1, http://www.proftpd.org/docs/howto/NAT.html
2, http://www.osguides.net/operation-systems/73-how-to-set-passive-mode-in-proftpd-on-red-hat-like-distributions.html
3, http://ubuntuforums.org/showthread.php?t=79588
4, https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
5, https://alestic.com/2014/01/ec2-ssh-username/
6, http://52.77.215.251/dashboard/docs/transfer-files-ftp.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值