{"id":1106,"date":"2015-10-27T18:11:26","date_gmt":"2015-10-27T10:11:26","guid":{"rendered":"http:\/\/www.myvoipapp.com\/blogs\/yxh\/?p=1106"},"modified":"2019-02-12T20:11:46","modified_gmt":"2019-02-12T12:11:46","slug":"pure-ftp-over-tls","status":"publish","type":"post","link":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2015\/10\/27\/pure-ftp-over-tls\/","title":{"rendered":"pure-ftp over TLS"},"content":{"rendered":"<p>\u6700\u8fd1\u67e5\u770blog\uff0c\u611f\u89c9\u6709\u4e9b\u65e0\u804a\u4eba\u58eb\u5c1d\u8bd5\u5e72\u6270\u6216\u8005\u653b\u51fbFTP\u670d\u52a1\u5668\uff0c\u56e0\u6b64\u6709\u5fc5\u8981\u5c06FTP\u670d\u52a1\u4fee\u6539\u4e3a\u52a0\u5bc6\u65b9\u5f0f\u3002\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662f\u91c7\u7528TLS\u8fdb\u884c\u4f20\u8f93\uff08\u5373FTPS\uff09\uff0c\u786e\u4fdd\u4f20\u8f93\u8fc7\u7a0b\u662f\u52a0\u5bc6\u7684\u3002<\/p>\n<p>\u76ee\u524d\u7cfb\u7edf\u4e3aDebian7\uff0c\u5df2\u90e8\u7f72pureFTPd\u4f5c\u4e3aFTP\u670d\u52a1\u5668\u3002\u6253\u5f00TLS\u652f\u6301\u65b9\u6cd5\u6bd4\u8f83\u7b80\u5355\uff0c\u8bf7\u53c2\u8003<a href=\"http:\/\/download.pureftpd.org\/pub\/pure-ftpd\/doc\/README.TLS\" target=\"_blank\">pureFTP over TLS\u6587\u6863<\/a>\u3002\u4e3b\u8981\u6b65\u9aa4\u5982\u4e0b\uff08\u5047\u5b9apureFTPd\u5df2\u7ecf\u90e8\u7f72\uff09\uff1a<\/p>\n<h2>\u6b65\u9aa41\uff1a\u6253\u5f00pureFTP\u7684TLS\u652f\u6301<\/h2>\n<p>\u6267\u884c\u547d\u4ee4\uff1a<\/p>\n<pre>echo 1 &gt; \/etc\/pure-ftpd\/conf\/TLS<\/pre>\n<p>\u8bbe\u7f6eTLS\u4e3a1\uff0c\u8fd0\u884c\u91c7\u7528overTLS\u4ee5\u53ca\u666e\u901a\u4e0d\u52a0\u5bc6\u65b9\u5f0f\u3002\u5982\u679c\u8981\u6c42\u5fc5\u987b\u4f7f\u7528TLS\u52a0\u5bc6\u65b9\u5f0f\uff0c\u5219\u5e94\u8bbe\u7f6eTLS\u4e3a2\u3002\u5b9e\u9645\u90e8\u7f72\u4e2d\uff0c\u5efa\u8bae\u8bbe\u7f6e\u4e3a2\u3002<\/p>\n<h2>\u6b65\u9aa42\uff1a\u521b\u5efaTLS\u52a0\u5bc6\u5bc6\u94a5<\/h2>\n<p>\u4f7f\u7528openssl\u521b\u5efa\u5373\u53ef\uff1a<\/p>\n<pre>openssl req -x509 -nodes -days 7200 -newkey rsa:2048 -keyout \/etc\/ssl\/private\/pure-ftpd.pem -out \/etc\/ssl\/private\/pure-ftpd.pem<\/pre>\n<p>\u4f1a\u63d0\u793a\u5404\u9879\u4fe1\u606f\u8f93\u5165\uff0c\u7167\u7740\u586b\u5199\u5373\u53ef\u3002\u540c\u65f6\uff0c\u4fee\u6539pem\u6587\u4ef6\u7684\u5c5e\u6027\uff1a<\/p>\n<pre>chmod 600 \/etc\/ssl\/private\/pure-ftpd.pem<\/pre>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u914d\u7f6e\u540e\uff0c\u91cd\u542fpureFTPd\u5373\u53ef\uff1a<\/p>\n<pre>service pure-ftpd restart<\/pre>\n<h2>\u6b65\u9aa43\uff1aFileZilla\u91c7\u7528\u663e\u5f0f\u52a0\u5bc6<\/h2>\n<p>\u5728FileZilla\u7684\u7ad9\u70b9\u7ba1\u7406\u914d\u7f6e\u4e2d\uff0c\u201c\u901a\u7528 &#8211; \u52a0\u5bc6\u201d\u9879\u5fc5\u987b\u914d\u7f6e\u4e3a\u201c\u8981\u6c42\u663e\u5f0f\u7684FTP over TLS\u201d\uff0c\u5982\u9644\u56fe\u6240\u793a\u5373\u53ef\u3002<\/p>\n<figure id=\"attachment_1107\" aria-describedby=\"caption-attachment-1107\" style=\"width: 233px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-content\/uploads\/2015\/10\/ftpOverTLS.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1107 size-medium\" src=\"http:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-content\/uploads\/2015\/10\/ftpOverTLS-233x300.png\" alt=\"FTP over TLS\" width=\"233\" height=\"300\" srcset=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-content\/uploads\/2015\/10\/ftpOverTLS-233x300.png 233w, https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-content\/uploads\/2015\/10\/ftpOverTLS-210x270.png 210w, https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-content\/uploads\/2015\/10\/ftpOverTLS.png 380w\" sizes=\"auto, (max-width: 233px) 100vw, 233px\" \/><\/a><figcaption id=\"caption-attachment-1107\" class=\"wp-caption-text\">\u914d\u7f6eFileZilla\u91c7\u7528FTP over TLS<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u67e5\u770blog\uff0c\u611f\u89c9\u6709\u4e9b\u65e0\u804a\u4eba\u58eb\u5c1d\u8bd5\u5e72\u6270\u6216\u8005\u653b\u51fbFTP\u670d\u52a1\u5668\uff0c\u56e0\u6b64\u6709\u5fc5\u8981\u5c06FTP\u670d\u52a1\u4fee\u6539\u4e3a\u52a0\u5bc6\u65b9\u5f0f\u3002\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662f\u91c7\u7528TLS\u8fdb\u884c\u4f20\u8f93\uff08\u5373FTPS\uff09\uff0c\u786e\u4fdd\u4f20\u8f93\u8fc7&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.myvoipapp.com\/blogs\/yxh\/2015\/10\/27\/pure-ftp-over-tls\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[78,144,457,266],"class_list":["post-1106","post","type-post","status-publish","format-standard","hentry","category-6","tag-debian","tag-ftp","tag-pure-ftpd","tag-tls"],"_links":{"self":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/comments?post=1106"}],"version-history":[{"count":6,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1106\/revisions"}],"predecessor-version":[{"id":1113,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/posts\/1106\/revisions\/1113"}],"wp:attachment":[{"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/media?parent=1106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/categories?post=1106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myvoipapp.com\/blogs\/yxh\/wp-json\/wp\/v2\/tags?post=1106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}