使vsftpd接受简单的ftp连接

…而不是sftp
现在ftp-ing到我的服务器很好用sftp通过端口22,但有时我在我的家庭networking,并不需要额外的ssh层。 另外,我怀疑无法连接正常的ftp:21会不断地使备份程序超时
这是我的configuration:

anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 anon_upload_enable=NO anon_mkdir_write_enable=NO dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/vsftpd.log listen=YES pam_service_name=vsftpd tcp_wrappers=YES max_clients=4 max_per_ip=1 listen_port=21 pasv_enable=YES 

确保您通过本地数据包filter(防火墙)允许FTP。 编辑/etc/sysconfig/iptables或运行system-config-firewall

一个简单的VSFTPD.conf允许从本地用户login。

 # No anonymous login anonymous_enable=NO # Let local users login # If you connect from the internet with local users, you should enable TLS/SSL/FTPS local_enable=YES # Write permissions write_enable=YES # Chroot all Users chroot_local_user=YES chroot_list_enable=NO 

记住FTP密码未encryption传输。 阅读启用SSL / TLS / FTPS。