linux·þÎñÆ÷ÅäÖÃ
vsftp·þÎñÆ÷£º
ÔÚ/etc/vsftpdĿ¼Ï¹²ÓÐ3¸öÅäÖÃÎļþ£¬ËüÃÇ·Ö±ðÊÇ£º
ftpusers:ËüÖ¸¶¨ÁËÄÄЩÓû§ÕË»§²»ÄÜ·ÃÎÊFTP·þÎñÆ÷£¬ÀýÈçrootµÈ¡£
user_list:¸ÃÎļþÀïµÄÓû§ÕË»§ÔÚĬÈÏÇé¿öÏÂÒ²²»ÄÜ·ÃÎÊFTP·þÎñÆ÷£¬½öµ±vsftpd .confÅäÖÃÎļþÀïÆôÓÃuserlist_enable=NOÑ¡Ïîʱ²ÅÔÊÐí·ÃÎÊ¡£
vsftpd.conf:ËüÊÇÒ»¸öÎı¾Îļþ£¬ÎÒÃÇ¿ÉÒÔÓÃKate¡¢ViµÈÎı¾±à¼¹¤¾ß¶ÔËü½øÐÐÐ޸ģ¬ÒÔ´ËÀ´×Ô¶¨ÒåÓû§µÇ¼¿ØÖÆ¡¢Óû§È¨ÏÞ¿ØÖÆ¡¢³¬Ê±ÉèÖᢷþÎñÆ÷¹¦ÄÜÑ¡Ïî¡¢·þÎñÆ÷ÐÔÄÜÑ¡Ïî¡¢·þÎñÆ÷ÏìÓ¦ÏûÏ¢µÈFTP·þÎñÆ÷µÄÅäÖá£
1.ÄäÃûµÇ¼
ĬÈÏÇé¿öÏÂÔÊÐíÄäÃûµÇ¼£¬Óû§¿ÉÒÔÔÚÃüÁîÐд°¿ÚÖÐÊäÈ룺ftp ftpËùÔÚ·þÎñÆ÷µÄIP£¬È»ºóÊäÈëÓû§Ãûanonymous£¬ÃÜÂëÈÎÒâ.¾Í¿ÉÒԵǼÁË¡£
2.ʹÓÃrootÓû§µÇ¼
ÔÚÎļþftpusers,user_listÖÐ×¢ÊÍ»òɾ³ýrootÓû§¼´¿É.
3.Ö»ÔÊÐíÏÂÔØ£¬²»ÔÊÐíÉÏ´«
cmds_allowed=ABOR,CMD,LIST,MDTM,MKD,NLST,PASS,PASV,PORT,PWD,QUIT,SIZE,STOR,TYPE,USER
ÔÚcmds_allowedÖÐÈ¥µôSTOR¾Í¿ÉÒÔÁË¡£
×¢Òâcmds_alloweÕâ¶Î
ÒÔÏÂÊÇÕâ¶ÎÏà¹ØÃüÁîµÄ˵Ã÷:£¨Òª×¢ÒâµÄÊÇ£¬ÕâÐÐÀïÃæ²»ÄÜ»»ÐУ¬²»ÄÜÓпոñ£©
# ABOR - abort a file transfer È¡ÏûÎļþ´«Êä
# CWD - change working directory ¸ü¸ÄĿ¼
# DELE - delete a remote file ɾ³ýÎļþ
# LIST - list remote files ÁÐĿ¼
# MDTM - return the modification time of a file ·µ»ØÎļþµÄ¸üÐÂʱ¼ä
# MKD - make a remote directory н¨Îļþ¼Ð
# NLST - name list of remote directory
# PASS - send password
# PASV - enter passive mode
# PORT - open a data port ´ò¿ªÒ»¸ö´«Êä¶Ë¿Ú
# PWD - print working directory ÏÔʾµ±Ç°¹¤×÷Ŀ¼
# QUIT - terminate the connection Í˳ö
# RETR - retrieve a remote file ÏÂÔØÎļþ
# RMD - remove a remote directory
# RNFR - rename from
# RNTO - rename to
# SITE - site-specific commands
# SIZE - return the size of a file ·µ»ØÎļþ´óС
# STOR - store a file on the remote host ÉÏ´«Îļþ
# TYPE - set transfer type
# USER - send username
¸ù¾Ý×Ô¼ºÐèҪѡÔñÏàÓ¦µÄȨÏÞ¡£
4.²»ÓÃÓÚÄäÃûµÇ¼
ÔÚvsftpd.confÎļþÖУ¬Ð޸IJÎÊýΪ£º
anonymous_enable=NO
Ïà¹ØÎĵµ£º
Ò»¡¢TCPÁ¬½Ó¹Ø±ÕµÄ¼¸ÖÖ·½Ê½£º
1¡¢“Õý³£”¹Ø±Õ£ºµ÷ÓÃclose()¹Ø±Õsocket¡¢Ã»closeµ«½ø³ÌÕý³£½áÊø(µ±È»ÕâÊDz»Ó¦¸ÃµÄ×ö·¨)¡¢½ø³Ìcoreµô¡¢ÔÚshellÃüÁîÐÐÖÐkillµô½ø³Ì£¬¶¼¿É³éÏó³É“Õý³£”¹Ø±Õ¡£ÒòΪ¼´Ê¹coreµô£¬ÄÚºËÒ²»áÂíÉÏ°ïÓ¦ÓóÌÐò»ØÊÕ(close)socketÎļþÃèÊö·û¡£
“Õý ......
×î½ü¿ªÊ¼×ªÏòLinux¿ª·¢£¬ÐèÒªÓõ½¶àÏ̡߳£ÉÏÍøÒ»²é£¬ÓеÄÈË˵LinuxûÓÐÏß³ÌÖ»Óнø³Ì£¬ÓеÄÈË˵Linuxµ±È»ÓÐỊ̈߳¬Ã»ÓÐÏß³Ìpthread¿âÊǸÉÂðµÄ£¿NPTLÓÖÊǸÉÂïÓã¿
¸öÈ˾õµÃ£¬Òª¿´´ÓÄĸö½Ç¶ÈÀ´¿´Õâ¸öÎÊÌâ¡£¶ÔÓÚÒ»°ãÓ¦ÓÃÈí¼þ¿ª·¢ÈËÔ±µÄ½Ç¶ÈÀ´¿´£¬¼ÈÈ»ÄÜÓÃpthread¿âÀ´´´½¨Ị̈߳¬ÒÔ¼°¿ÉÒÔ´¦ÀíÏ̼߳äµÄͨÐÅ£¬µ±È»¿ÉÒÔÈÏΪÔÚL ......
³£ÔÚÏîÄ¿ÖÐÓöµ½ÍâµØµÄ¿Í»§Åöµ½ÎÊÌ⣬µ«ÎÞ·¨Ôڵ绰Öнâ¾ö£¬ÐèÒªÔÚ»úÆ÷ÉϽøÐзÖÎöºÍ´¦Àí¡£µÚÒ»¸öÏëµ½µÄ¾ÍÊÇÔ¶³ÌµÇ½£¬µ«¶Ô·½Ã»Óй«ÍøIP£¬Ôõô°ì£¿´Ëʱ£¬Èç¹ûÓиöVPNͨµÀ¸Ã¶àºÃ¡£ËùÒÔ£¬ÎÒ¾ö¶¨´î½¨Ò»Ì¨VPN·þÎñÆ÷ÒÔ·½±ã½ñºóµÄά»¤£¬Ë³±ãÒ²ÔÙÊìϤһÏÂÏà¹ØµÄÅäÖá£
VPNÓ²¼þÊDz»Óÿ¼Âǵģ¬·ÑÓÃÌ«¸ß¡£¶øÇÒ¼ÈÈ»ÒѾÊìϤÁ ......
ºÃÃ÷È·µØ½²¸ø´ó¼ÒÌý£¬ÔÚwin xp telnet ,ÊDz»Ã»°ì·¨°ÑÎļþÉÏ´«µ½Ô¶³ÌÖ÷»ú£¬µ«ÓÐÈí¼þ¿ÉÒÔʵÏÖ£¬¾ÍÊÇputty
Ê×ÏÈÈ»ÊÇÔڰٶȴòÉÏputty£¬È»ºóÏÂÕâ¸öÈí¼þÏÂÀ´£¬Ö®ºó½âѹ³öÀ´£¬ÔÙÖ®ºó¾ÍÕÒµ½psftp.exe
È»ºó£ºopen IP/ÓòÃû
login:
password:
×Ô¼ºÊäÈë¡£
Ö®ºócdÃüÁîÊÇ´ò¿ªÔ¶³ÌÖ÷»úµÄĿ¼£¬
lcd ÊÇ´ò¿ª±¾µØµçÄÔµÄÎļþ£¬
Ö ......