\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>\n2.\u8bbe\u7f6e\u8be5\u7528\u6237\u7684\u5bc6\u7801\uff1a<\/p>\n
\n
\nsudo passwd ftpuser\n<\/pre>\n<\/p>\n3.\u5c06\u8be5\u7528\u6237\u6dfb\u52a0\u5230vsftpd\u7684\u7528\u6237\u5217\u8868\u4e2d\uff1a<\/p>\n
<\/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>\n2.\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>\n3.\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<\/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}]}}