ºìÁªLinuxÃÅ»§
Linux°ïÖú

¡¾ÇóÖú¡¿ubuntu 12.04 pure-ftpd TLSÁ¬½Ó¹ÊÕÏ

·¢²¼Ê±¼ä:2012-05-31 14:27:18À´Ô´:ºìÁª×÷Õß:szfhx
sudo apt-get install pure-ftpd

TLSÉèÖÃÈçÏÂ:
#ʵÏÖTLSÈÏÖ¤ Ö¤ÊéÉèÖÃ
sudo openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
#²ÎÊýÊÇ1ÒþʽTLS£¬Í¬Ê±Ö§³Ö¼ÓÃÜ¡¢·Ç¼ÓÃÜÁ¬½Ó£¬²ÎÊý2ΪÏÔʽTLS
sudo echo '1' > /etc/pure-ftpd/conf/TLS

ftp¿Í»§¶ËÌáʾ´íÎó£º
״̬: ÕýÔÚÁ¬½Ó 192.168.2.6:990...
״̬: ³¢ÊÔÁ¬½Óʧ°Ü "ECONNREFUSED - Connection refused by server" ¡£
Õý³£FTPÁ¬½Ó¿ÉÒԵǼ¡£

ÆäËûÉèÖãº
#½â¾ö±¾µØÕË»§Ê¹ÓÃFTP·þÎñ
echo "yes" > /etc/pure-ftpd/conf/DontResolve
#×éIDΪ1000µÄÓû§²»ÊÜÖ÷Ŀ¼µÄÏÞÖÆ£¬ÆäËûµÄÓû§»¹»áÊÜÏÞÔÚ×Ô¼ºÖ÷Ŀ¼¡£(²é¿´vim /etc/group ·¢ÏÖGID=1000ÊÇÓû§hr)
echo "no" > /etc/pure-ftpd/conf/ChrootEveryone
echo "1000" > /etc/pure-ftpd/conf/TrustedGID
#²»½âÊÍÖ÷»úÃû£¬Ñ¡¡°yes¡±µÄ»°¿ÉÒÔ´ó´ó¼Ó¿ìµÇ¼ftpµÄËٶȵÄ
echo "yes" > /etc/pure-ftpd/conf/DontResolve
#ÿ¸öIPµÄ×î´óÁ¬½ÓÊý
echo "10" > /etc/pure-ftpd/conf/MaxClientsPerIP
# ¼æÈÝieµÈ±È½Ï·ÇÕý¹æ»¯µÄftp¿Í»§¶Ë
echo "no" > /etc/pure-ftpd/conf/BrokenClientsCompatibility
# ËùÓÐÓû§µÄ×î´ó´ø¿í£¨800KB/s£©£¬°üÀ¨ÄäÃûÓû§¡£
echo "800" > /etc/pure-ftpd/conf/UserBandwidth
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ