{"id":287781,"date":"2023-11-21T20:17:26","date_gmt":"2023-11-21T12:17:26","guid":{"rendered":"https:\/\/lrxjmw.cn\/wbtlazvxzzjf.html"},"modified":"2023-11-21T20:17:26","modified_gmt":"2023-11-21T12:17:26","slug":"wbtlazvxzzjf","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/wbtlazvxzzjf.html","title":{"rendered":"\u4e4c\u73ed\u56felinux\u5b89\u88c5vsftpd\uff1a\u9009\u62e9\u6700\u4f73FTP\u670d\u52a1\u5668\u8f6f\u4ef6"},"content":{"rendered":"

\u4e00\u3001\u4ec0\u4e48\u662fvsftpd\uff1f<\/b><\/p>\n

vsftpd\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684FTP\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u5b83\u7684\u5168\u79f0\u662fVery Secure FTP Daemon\u4e4c\u73ed\u56felinux\u5b89\u88c5vsftpd<\/strong>\uff0c\u610f\u601d\u662f\u975e\u5e38\u5b89\u5168\u7684FTP\u5b88\u62a4\u8fdb\u7a0b\u3002\u5b83\u63d0\u4f9b\u4e86\u5b89\u5168\u3001\u7a33\u5b9a\u548c\u9ad8\u6548\u7684\u6587\u4ef6\u4f20\u8f93\u670d\u52a1\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cdLinux<\/a>\u53d1\u884c\u7248\u4e2d\u3002<\/p>\n

\u4e8c\u3001\u4e3a\u4ec0\u4e48\u9009\u62e9vsftpd\uff1f<\/b><\/p>\n

\u4e0e\u5176\u4ed6FTP\u670d\u52a1\u5668\u8f6f\u4ef6\u76f8\u6bd4\uff0cvsftpd\u5177\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a<\/p>\n

1.\u5b89\u5168\u6027\uff1avsftpd\u91c7\u7528\u4e86\u8bb8\u591a\u5b89\u5168\u673a\u5236\uff0c\u5305\u62ec\u652f\u6301SSL\/TLS\u52a0\u5bc6\u4f20\u8f93\u3001\u9650\u5236\u7528\u6237\u6743\u9650\u548c\u76ee\u5f55\u8bbf\u95ee\u7b49\uff0c\u4fdd\u8bc1\u4e86\u6587\u4ef6\u4f20\u8f93\u7684\u5b89\u5168\u6027\u3002<\/p>\n

2.\u7a33\u5b9a\u6027\uff1avsftpd\u7ecf\u8fc7\u591a\u5e74\u7684\u5f00\u53d1\u548c\u5b8c\u5584\uff0c\u5df2\u7ecf\u88ab\u5e7f\u6cdb\u9a8c\u8bc1\u548c\u4f7f\u7528\uff0c\u5728\u7a33\u5b9a\u6027\u65b9\u9762\u8868\u73b0\u51fa\u8272\u3002<\/p>\n

3.\u9ad8\u6548\u6027\uff1avsftpd\u5177\u6709\u9ad8\u5ea6\u4f18\u5316\u7684\u4ee3\u7801\u7ed3\u6784\u548c\u7b97\u6cd5\uff0c\u80fd\u591f\u5b9e\u73b0\u66f4\u5feb\u901f\u3001\u66f4\u9ad8\u6548\u7684\u6587\u4ef6\u4f20\u8f93\u3002<\/p>\n

\u4e09\u3001\u5982\u4f55\u5b89\u88c5vsftpd\uff1f<\/b><\/p>\n

1.\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/a>\u5b89\u88c5vsftpd\uff1a<\/p>\n

\u5b89\u88c5\u4e4c\u73ed\u56fe20.04_\u5b89\u88c5\u4e4c\u73ed\u56fe\u7cfb\u7edf_\u4e4c\u73ed\u56felinux\u5b89\u88c5vsftpd<\/p>\n

\n

\nsudo apt-get update\nsudo apt-get install vsftpd\n<\/pre>\n<\/p>\n

2.\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8vsftpd\u670d\u52a1\uff1a<\/p>\n

\n

\nsudo service vsftpd start\n<\/pre>\n<\/p>\n

\u56db\u3001\u5982\u4f55\u914d\u7f6evsftpd\uff1f<\/b><\/p>\n

1.\u6253\u5f00\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n

\n

\nsudo nano \/etc\/vsftpd.conf\n<\/pre>\n<\/p>\n

2.\u6839\u636e\u9700\u8981\u8fdb\u884c\u914d\u7f6e\u4e4c\u73ed\u56felinux\u5b89\u88c5vsftpd<\/strong>linux \u5b89\u88c5\uff0c\u5e38\u89c1\u7684\u914d\u7f6e\u9879\u5305\u62ec\uff1a<\/p>\n

-\u533f\u540d\u8bbf\u95ee\u8bbe\u7f6e\uff1a\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e`anonymous_enable=YES`\u6765\u5141\u8bb8\u533f\u540d\u7528\u6237\u8bbf\u95ee\u3002<\/p>\n

-\u7528\u6237\u767b\u5f55\u8bbe\u7f6e\uff1a\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e`local_enable=YES`\u6765\u5141\u8bb8\u672c\u5730\u7528\u6237\u767b\u5f55\u3002<\/p>\n

-\u76ee\u5f55\u9650\u5236\u8bbe\u7f6e\uff1a\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e`chroot_local_user=YES`\u6765\u9650\u5236\u7528\u6237\u4ec5\u80fd\u8bbf\u95ee\u81ea\u5df1\u7684\u4e3b\u76ee\u5f55\u3002<\/p>\n

\u4e94\u3001\u5982\u4f55\u6dfb\u52a0FTP\u7528\u6237\uff1f<\/b><\/p>\n

1.\u521b\u5efa\u4e00\u4e2a\u65b0\u7528\u6237\uff1a<\/p>\n

\n

\nsudo adduser ftpuser\n<\/pre>\n<\/p>\n

2.\u8bbe\u7f6e\u8be5\u7528\u6237\u7684\u5bc6\u7801\uff1a<\/p>\n

\n

\nsudo passwd ftpuser\n<\/pre>\n<\/p>\n

3.\u5c06\u8be5\u7528\u6237\u6dfb\u52a0\u5230vsftpd\u7684\u7528\u6237\u5217\u8868\u4e2d\uff1a<\/p>\n

\u4e4c\u73ed\u56felinux\u5b89\u88c5vsftpd_\u5b89\u88c5\u4e4c\u73ed\u56fe20.04_\u5b89\u88c5\u4e4c\u73ed\u56fe\u7cfb\u7edf<\/p>\n

\n

\necho \"ftpuser\"| sudo tee -a\/etc\/vsftpd.userlist\n<\/pre>\n<\/p>\n

\u516d\u3001\u5982\u4f55\u542f\u7528SSL\/TLS\u52a0\u5bc6\u4f20\u8f93\uff1f<\/b><\/p>\n

1.\u751f\u6210SSL\u8bc1\u4e66\u548c\u79c1\u94a5\uff1a<\/p>\n

\n

\nsudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout \/etc\/ssl\/private\/vsftpd.key -out \/etc\/ssl\/certs\/vsftpd.crt\n<\/pre>\n<\/p>\n

2.\u6253\u5f00vsftpd\u914d\u7f6e\u6587\u4ef6linux\u5b9a\u65f6\u5668\uff0c\u8fdb\u884c\u76f8\u5173\u914d\u7f6e\uff1a<\/p>\n

\n

\nsudo nano \/etc\/vsftpd.conf\n<\/pre>\n<\/p>\n

3.\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\u9879\u542f\u7528SSL\/TLS\u52a0\u5bc6\u4f20\u8f93\uff1a<\/p>\n

\n

\nrsa_cert_file=\/etc\/ssl\/certs\/vsftpd.crt\nrsa_private_key_file=\/etc\/ssl\/private\/vsftpd.key\nssl_enable=YES\nallow_anon_ssl=NO\nforce_local_data_ssl=YES\nforce_local_logins_ssl=YES\nssl_tlsv1=YES\nssl_sslv2=NO\nssl_sslv3=NO\nrequire_ssl_reuse=NO\n<\/pre>\n<\/p>\n

\u5b89\u88c5\u4e4c\u73ed\u56fe\u7cfb\u7edf_\u5b89\u88c5\u4e4c\u73ed\u56fe20.04_\u4e4c\u73ed\u56felinux\u5b89\u88c5vsftpd<\/p>\n

\u4e03\u3001\u5982\u4f55\u91cd\u542fvsftpd\u670d\u52a1\uff1f<\/b><\/p>\n

\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u91cd\u542fvsftpd\u670d\u52a1\uff1a<\/p>\n

\n

\nsudo service vsftpd restart\n<\/pre>\n<\/p>\n

\u516b\u3001\u5982\u4f55\u8bbf\u95eevsftpd\u670d\u52a1\u5668\uff1f<\/b><\/p>\n

1.\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165FTP\u670d\u52a1\u5668\u7684IP\u5730\u5740\u6216\u57df\u540d\uff0c\u56de\u8f66\u3002<\/p>\n

2.\u8f93\u5165FTP\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u70b9\u51fb\u767b\u5f55\u6309\u94ae\u3002<\/p>\n

3.\u6210\u529f\u767b\u5f55\u540e\uff0c\u5373\u53ef\u8fdb\u884c\u6587\u4ef6\u4e0a\u4f20\u548c\u4e0b\u8f7d\u64cd\u4f5c\u3002<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e4c\u73ed\u56felinux\u4e0a\u5b89\u88c5\u914d\u7f6e\u5e76\u4f7f\u7528vsftpd\u642d\u5efa\u81ea\u5df1\u7684FTP\u670d\u52a1\u5668\u3002\u4eab\u53d7\u5b89\u5168\u3001\u7a33\u5b9a\u548c\u9ad8\u6548\u7684\u6587\u4ef6\u4f20\u8f93\u670d\u52a1\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e0e\u5176\u4ed6FTP\u670d\u52a1\u5668\u8f6f\u4ef6\u76f8\u6bd4\uff0cvsftpd\u5177\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a\u4e09\u3001\u5982\u4f55\u5b89\u88c5vsftpd\uff1f\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5vsftpd\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8vsftpd\u670d\u52a1\uff1a\u6253\u5f00vsftpd\u914d\u7f6e\u6587\u4ef6\uff0c\u8fdb\u884c\u76f8\u5173\u914d\u7f6e\uff1a\u4e03\u3001\u5982\u4f55\u91cd\u542fvsftpd\u670d\u52a1\uff1f\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u91cd\u542fvsftpd\u670d\u52a1\uff1a\u516b\u3001\u5982\u4f55\u8bbf\u95eevsftpd\u670d\u52a1\u5668\uff1f<\/p>\n","protected":false},"author":1,"featured_media":287782,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-287781","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/287781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=287781"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/287781\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/287782"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=287781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=287781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=287781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}