{"id":5884,"date":"2025-07-09T09:39:32","date_gmt":"2025-07-09T01:39:32","guid":{"rendered":"http:\/\/192.168.1.29\/?p=5884"},"modified":"2025-07-09T10:22:00","modified_gmt":"2025-07-09T02:22:00","slug":"linux-ftp-%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8d%e9%80%9a%e8%b0%83%e8%af%95%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/xc.ipyingshe.net:5347\/?p=5884","title":{"rendered":"linux  ftp \u670d\u52a1\u5668\u4e0d\u901a\u8c03\u8bd5\u65b9\u6cd5"},"content":{"rendered":"\n<p><strong>\u6211\u7684\u9519\u8bef\u662f \u914d\u7f6e\u6587\u4ef6\u6253\u5f00\u4e86 ipv6 \u76d1\u542c\uff0c\u6ce8\u91ca\u6389\uff0c\u5c31\u8fd0\u884c\u4e86\uff01<\/strong><\/p>\n\n\n\n<p>\u5f53\u4f7f\u7528FTP\u547d\u4ee4\u8fde\u63a5<code>192.168.1.177<\/code>\u65f6\u51fa\u73b0\u201c\u8fde\u63a5\u88ab\u62d2\u7edd\u201d\u7684\u63d0\u793a\uff0c\u901a\u5e38\u610f\u5473\u7740\u5ba2\u6237\u7aef\u65e0\u6cd5\u4e0e\u76ee\u6807\u4e3b\u673a\u7684FTP\u670d\u52a1\u5efa\u7acb\u8fde\u63a5\u3002\u4ee5\u4e0b\u662f\u53ef\u80fd\u7684\u539f\u56e0\u53ca\u5bf9\u5e94\u7684\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e00\u3001\u6838\u5fc3\u539f\u56e0\u5206\u6790<\/h3>\n\n\n\n<p>\u201c\u8fde\u63a5\u88ab\u62d2\u7edd\u201d\u672c\u8d28\u662f\uff1a\u76ee\u6807\u4e3b\u673a\u7684<code>21\u7aef\u53e3<\/code>\uff08FTP\u9ed8\u8ba4\u7aef\u53e3\uff09\u672a\u5904\u4e8e\u76d1\u542c\u72b6\u6001\uff0c\u6216\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u88ab\u62e6\u622a\uff0c\u5bfc\u81f4TCP\u63e1\u624b\u5931\u8d25\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e8c\u3001\u5177\u4f53\u89e3\u51b3\u6b65\u9aa4<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u786e\u8ba4\u76ee\u6807\u4e3b\u673a\u662f\u5426\u5728\u7ebf<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5148\u901a\u8fc7<code>ping<\/code>\u547d\u4ee4\u68c0\u67e5\u7f51\u7edc\u8fde\u901a\u6027\uff1a<br><code>cmd ping 192.168.1.177<\/code><\/li>\n\n\n\n<li>\u82e5<code>\u8bf7\u6c42\u8d85\u65f6<\/code>\uff1a\u8bf4\u660e\u7f51\u7edc\u4e0d\u901a\uff08\u5982IP\u9519\u8bef\u3001\u7f51\u7ebf\u677e\u52a8\u3001\u76ee\u6807\u4e3b\u673a\u672a\u5f00\u673a\u7b49\uff09\uff0c\u9700\u5148\u6392\u67e5\u7f51\u7edc\u8fde\u63a5\u3002<\/li>\n\n\n\n<li>\u82e5\u80fd<code>\u6b63\u5e38ping\u901a<\/code>\uff1a\u518d\u6392\u67e5FTP\u670d\u52a1\u548c\u7aef\u53e3\u95ee\u9898\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u68c0\u67e5\u76ee\u6807\u4e3b\u673a\u662f\u5426\u5f00\u542fFTP\u670d\u52a1<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FTP\u670d\u52a1\u672a\u5b89\u88c5\u6216\u672a\u542f\u52a8\u65f6\uff0c\u7aef\u53e3\u4e0d\u4f1a\u76d1\u542c\u3002\u9700\u786e\u8ba4\uff1a\n<ul class=\"wp-block-list\">\n<li>\u76ee\u6807\u4e3b\u673a\u662f\u5426\u5b89\u88c5\u4e86FTP\u670d\u52a1\u5668\u8f6f\u4ef6\uff08\u5982Windows\u7684IIS-FTP\u3001FileZilla Server\u3001Linux\u7684vsftpd\u7b49\uff09\u3002<\/li>\n\n\n\n<li>\u670d\u52a1\u662f\u5426\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\uff08\u4f8b\u5982Linux\u7528<code>systemctl status vsftpd<\/code>\uff0cWindows\u5728\u201c\u670d\u52a1\u201d\u4e2d\u67e5\u770b\u5bf9\u5e94\u670d\u52a1\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u786e\u8ba4FTP\u7aef\u53e3\u662f\u5426\u88ab\u5360\u7528\u6216\u9632\u706b\u5899\u62e6\u622a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7aef\u53e3\u5360\u7528<\/strong>\uff1a<br>\u82e5\u76ee\u6807\u4e3b\u673a\u768421\u7aef\u53e3\u88ab\u5176\u4ed6\u7a0b\u5e8f\u5360\u7528\uff0cFTP\u670d\u52a1\u65e0\u6cd5\u542f\u52a8\u3002\u53ef\u5728\u76ee\u6807\u4e3b\u673a\u4e0a\u68c0\u67e5\u7aef\u53e3\u76d1\u542c\u60c5\u51b5\uff1a\n<ul class=\"wp-block-list\">\n<li>Windows\uff1a<code>netstat -ano | findstr :21<\/code><\/li>\n\n\n\n<li>Linux\uff1a<code>netstat -tuln | grep 21<\/code> \u6216 <code>ss -tuln | grep 21<\/code><br>\u82e5\u65e0\u7ed3\u679c\uff0c\u8bf4\u660e21\u7aef\u53e3\u672a\u88ab\u76d1\u542c\uff08\u670d\u52a1\u672a\u542f\u52a8\u6216\u7aef\u53e3\u88ab\u4fee\u6539\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u9632\u706b\u5899\u62e6\u622a<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>\u76ee\u6807\u4e3b\u673a\u7684\u9632\u706b\u5899\uff08\u5982Windows\u9632\u706b\u5899\u3001Linux\u7684firewalld\/iptables\uff09\u53ef\u80fd\u963b\u6b62\u4e8621\u7aef\u53e3\u7684\u5165\u7ad9\u8fde\u63a5\uff0c\u9700\u6dfb\u52a0\u89c4\u5219\u5141\u8bb821\u7aef\u53e3\u901a\u8fc7\u3002<\/li>\n\n\n\n<li>\u5ba2\u6237\u7aef\u672c\u5730\u9632\u706b\u5899\u4e5f\u53ef\u80fd\u62e6\u622a\u51fa\u7ad9\u8fde\u63a5\uff0c\u53ef\u6682\u65f6\u5173\u95ed\u6d4b\u8bd5\uff08\u4e0d\u5efa\u8bae\u957f\u671f\u5173\u95ed\uff0c\u9700\u914d\u7f6e\u89c4\u5219\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">4. \u68c0\u67e5FTP\u670d\u52a1\u662f\u5426\u4fee\u6539\u4e86\u9ed8\u8ba4\u7aef\u53e3<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u90e8\u5206FTP\u670d\u52a1\u53ef\u80fd\u81ea\u5b9a\u4e49\u4e86\u7aef\u53e3\uff08\u5982\u975e21\u7aef\u53e3\uff09\uff0c\u6b64\u65f6\u8fde\u63a5\u9700\u6307\u5b9a\u7aef\u53e3\uff1a<br><code>cmd ftp 192.168.1.177 \u7aef\u53e3\u53f7<\/code><br>\u9700\u786e\u8ba4\u76ee\u6807FTP\u670d\u52a1\u7684\u5b9e\u9645\u7aef\u53e3\uff08\u4f8b\u5982\u5728\u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6\u4e2d\u67e5\u770b\uff0c\u5982vsftpd\u7684<code>\/etc\/vsftpd.conf<\/code>\u4e2d\u7684<code>listen_port<\/code>\u53c2\u6570\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">5. \u9a8c\u8bc1IP\u5730\u5740\u662f\u5426\u6b63\u786e<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u786e\u8ba4\u8f93\u5165\u7684IP<code>192.168.1.177<\/code>\u662f\u5426\u51c6\u786e\uff0c\u662f\u5426\u5b58\u5728\u62fc\u5199\u9519\u8bef\uff0c\u6216\u76ee\u6807\u4e3b\u673a\u7684IP\u662f\u5426\u5df2\u53d8\u66f4\uff08\u4f8b\u5982\u901a\u8fc7DHCP\u81ea\u52a8\u83b7\u53d6\u7684IP\u53ef\u80fd\u53d8\u5316\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">6. \u5c1d\u8bd5\u4f7f\u7528\u88ab\u52a8\u6a21\u5f0f\uff08PASV\uff09\u6216\u66f4\u6362\u5ba2\u6237\u7aef\u6d4b\u8bd5<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u90e8\u5206FTP\u670d\u52a1\u9ed8\u8ba4\u542f\u7528\u88ab\u52a8\u6a21\u5f0f\uff0c\u82e5\u5ba2\u6237\u7aef\u9ed8\u8ba4\u7528\u4e3b\u52a8\u6a21\u5f0f\u53ef\u80fd\u8fde\u63a5\u5931\u8d25\uff0c\u53ef\u5728FTP\u547d\u4ee4\u884c\u4e2d\u5207\u6362\u6a21\u5f0f\uff1a<br><code>ftp ftp&gt; passive # \u5207\u6362\u5230\u88ab\u52a8\u6a21\u5f0f\uff08\u8f93\u5165\u540e\u65e0\u63d0\u793a\uff0c\u76f4\u63a5\u6267\u884c\u540e\u7eed\u64cd\u4f5c\uff09 ftp&gt; open 192.168.1.177<\/code><\/li>\n\n\n\n<li>\u4e5f\u53ef\u5c1d\u8bd5\u7528\u56fe\u5f62\u5316\u5de5\u5177\uff08\u5982FileZilla Client\uff09\u8fde\u63a5\uff0c\u5de5\u5177\u4f1a\u66f4\u6e05\u6670\u5730\u663e\u793a\u9519\u8bef\u4fe1\u606f\uff08\u5982\u7aef\u53e3\u9519\u8bef\u3001\u8ba4\u8bc1\u95ee\u9898\u7b49\uff09\uff0c\u5e2e\u52a9\u8fdb\u4e00\u6b65\u6392\u67e5\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e09\u3001\u603b\u7ed3\u6392\u67e5\u6d41\u7a0b<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>ping 192.168.1.177<\/code> \u2192 \u786e\u8ba4\u7f51\u7edc\u8fde\u901a\u6027\uff1b<\/li>\n\n\n\n<li>\u68c0\u67e5\u76ee\u6807\u4e3b\u673aFTP\u670d\u52a1\u662f\u5426\u8fd0\u884c\u300121\u7aef\u53e3\u662f\u5426\u76d1\u542c\uff1b<\/li>\n\n\n\n<li>\u6392\u67e5\u76ee\u6807\u4e3b\u673a\u548c\u5ba2\u6237\u7aef\u7684\u9632\u706b\u5899\u89c4\u5219\uff1b<\/li>\n\n\n\n<li>\u786e\u8ba4IP\u548c\u7aef\u53e3\u662f\u5426\u6b63\u786e\uff0c\u5fc5\u8981\u65f6\u66f4\u6362\u5ba2\u6237\u7aef\u6d4b\u8bd5\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u9010\u6b65\u5b9a\u4f4d\u201c\u8fde\u63a5\u88ab\u62d2\u7edd\u201d\u7684\u539f\u56e0\u5e76\u89e3\u51b3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7684\u9519\u8bef\u662f \u914d\u7f6e\u6587\u4ef6\u6253\u5f00\u4e86 ipv6 \u76d1\u542c\uff0c\u6ce8\u91ca\u6389\uff0c\u5c31\u8fd0\u884c\u4e86\uff01 \u5f53\u4f7f\u7528FTP\u547d\u4ee4 <span class=\"readmore\"><a href=\"http:\/\/xc.ipyingshe.net:5347\/?p=5884\">Continue Reading<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-5884","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/posts\/5884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5884"}],"version-history":[{"count":2,"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/posts\/5884\/revisions"}],"predecessor-version":[{"id":5887,"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=\/wp\/v2\/posts\/5884\/revisions\/5887"}],"wp:attachment":[{"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5884"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xc.ipyingshe.net:5347\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}