
{"id":76,"date":"2015-06-05T14:23:57","date_gmt":"2015-06-05T06:23:57","guid":{"rendered":"https:\/\/www.webteach.tw\/?p=76"},"modified":"2015-06-05T14:23:57","modified_gmt":"2015-06-05T06:23:57","slug":"vsftp","status":"publish","type":"post","link":"https:\/\/www.webteach.tw\/?p=76","title":{"rendered":"[ AWS ] &#8211; install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04"},"content":{"rendered":"<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div><div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><p>install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04<\/p>\n<p><strong>1.\u5b89\u88ddvsftp<\/strong><br \/>\n\u6307\u4ee4\uff1asudo apt-get install vsftpd<\/p>\n<p><strong>2.\u4fee\u6539\u8a2d\u5b9a\u6a94<\/strong><br \/>\n\u6307\u4ee4\uff1a vi \/etc\/vsftpd.conf<\/p>\n<p>\u5728\u8a72\u6a94 29 \/33 \u884c \u62ff\u6389#<br \/>\nwrite_enable=YES<br \/>\nlocal_umask=022<\/p>\n<p>\u5728\u8a72\u6a94 120 \u884c \u62ff\u6389#<br \/>\nchroot_local_user=YES<br \/>\n\/* \u7cfb\u7d71\u9810\u8a2d\u9019\u4e00\u884c\u88ab\u8a3b\u89e3\u6389 \u4f7f\u7528\u8005\u53ef\u4ee5\u770b\u5230\u7cfb\u7d71\u8cc7\u6599\u593e\uff0c\u62ff\u6389\u8a3b\u89e3\u4f7f\u7528\u8005\u5c31\u53ea\u80fd\u770b\u5230\u81ea\u5df2\u5bb6\u76ee\u9304\u5167\u7684\u8cc7\u6599*\/<br \/>\n\u5728\u8a72\u6a94\u6587\u4ef6\u5c3e\u52a0\u5165<br \/>\nallow_writeable_chroot=YES<\/p>\n<p>pasv_enable=Yes<br \/>\npasv_address=\u8acb\u8f38\u5165aws ec2 \u7684 ip<br \/>\npasv_min_port=60001<br \/>\npasv_max_port=60100<\/p>\n<p>\u6700\u5f8c\u91cd\u555f ftp<br \/>\n\u6307\u4ee4\uff1a sudo service vsftpd restart<\/p>\n<p>3.\u65b0\u589e\u4f7f\u7528\u8005<br \/>\n\u6307\u4ee4\uff1asudo useradd -m jeff -s \/usr\/sbin\/nologin<br \/>\n\u8a3b\uff1a -m \u8868\u793a\u5efa\u7acb\u5bb6\u76ee\u9304 -s \u5f8c\u9762\u63a5shell\u6307\u4ee4<br \/>\n\u5728\/etc\/shells\u6a94\u5c3e\u4e2d\u52a0\u5165 \u4e0b\u9762\u9019\u4e00\u884c<br \/>\n\/usr\/sbin\/nologin<\/p>\n<p>4.\u8a2d\u5b9a\u4f7f\u7528\u8005\u6b0a\u9650 \u53ca \u9810\u8a2d\u76ee\u9304<br \/>\n\u5c07\u8a72\u4f7f\u7528\u8005\u7684\u5bb6\u76ee\u9304\u8a2d\u5b9a\u6210 \/var\/www\/html<\/p>\n<pre>usermod&nbsp; --home \/var\/www\/html jeff<\/pre>\n<p>\u6b64\u6642\u7528jeff\u767b\u5165ftp\u5f8c\u6703\u81ea\u52d5\u9023\u5230 \/var\/www\/html<br \/>\n\u4f46\u9084\u662f\u4e0d\u80fd\u65b0\u589e\u7de8\u8f2f\u6a94\u6848\uff0c\u56e0\u70ba\u6b0a\u9650\u4e0d\u8db3<\/p>\n<p>chown -R jeff:1001 \/var\/www \u8b8a\u66f4\u76ee\u9304\u7684\u64c1\u6709\u8005\u53ca\u7fa4\u7d44<\/p>\n<p>\u8a2d\u5b9a\u4f7f\u7528\u8005\u5bc6\u78bc\uff1a<br \/>\npasswd jeff<\/p>\n<p>5.\u8a2d\u5b9a aws \u5b89\u5168\u7d44<br \/>\n\u81ea\u5b9a\u4e49 TCP \u89c4\u5219 TCP 20 &#8211; 21 0.0.0.0\/0<br \/>\n\u81ea\u5b9a\u4e49 TCP \u89c4\u5219 TCP 60001 &#8211; 60100 0.0.0.0\/0<\/p>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9a5f\u5c31\u53ef\u4ee5\u4f7f\u7528ftp\u767b\u5165\u4e0a\u50b3\u6a94\u6848\u4e86\u3002<\/p>\n\n<p>2020-07-01 \u66f4\u65b0<br \/>\u82e5\u51fa\u73fe \u4ee5\u4e0b\u8a0a\u606f<\/p>\n\n\n<p>Status: Connection established, waiting for welcome message\u2026<br \/>Status: Insecure server, it does not support FTP over TLS.<br \/>Command: USER manna<br \/>Response: 331 Please specify the password.<br \/>Command: PASS<br \/>Response: 530 Login incorrect.<\/p>\n\n\n<p>\u6307\u4ee4\uff1a nano \/etc\/pam.d\/vsftpd<\/p>\n\n\n<p>\u5c07\u4ee5\u4e0b\u5169\u884c\u8a3b\u89e3\u6389 \u524d\u65b9\u52a0#<br \/>auth required pam_listfile.so item=user sense=deny file=\/etc\/ftpusers onerr=succeed<br \/><br \/>auth required pam_shells.so<br \/>\u518d\u91cd\u555f ftp<\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>install vsftp on ubu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[20],"tags":[131,575,576,602],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-aws","tag-aws","tag-ubuntu-14-04","tag-ubuntu-16-04-lts","tag-vsftp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[ AWS ] - install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04 - \u6df7\u6c34\u6478\u9b5a<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webteach.tw\/?p=76\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[ AWS ] - install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04 - \u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"og:description\" content=\"install vsftp on ubu [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webteach.tw\/?p=76\" \/>\n<meta property=\"og:site_name\" content=\"\u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-05T06:23:57+00:00\" \/>\n<meta name=\"author\" content=\"jeff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"jeff\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=76#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=76\"},\"author\":{\"name\":\"jeff\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"headline\":\"[ AWS ] &#8211; install vsftp on ubuntu 14.04 \\\/ 16.04 \\\/ 18.04\",\"datePublished\":\"2015-06-05T06:23:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=76\"},\"wordCount\":145,\"commentCount\":0,\"keywords\":[\"aws\",\"ubuntu 14.04\",\"Ubuntu 16.04 LTS\",\"vsftp\"],\"articleSection\":[\"AWS\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=76#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=76\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?p=76\",\"name\":\"[ AWS ] - install vsftp on ubuntu 14.04 \\\/ 16.04 \\\/ 18.04 - \u6df7\u6c34\u6478\u9b5a\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\"},\"datePublished\":\"2015-06-05T06:23:57+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=76#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=76\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=76#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\\\/\\\/www.webteach.tw\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[ AWS ] &#8211; install vsftp on ubuntu 14.04 \\\/ 16.04 \\\/ 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/\",\"name\":\"\u6df7\u6c34\u6478\u9b5a\",\"description\":\"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webteach.tw\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\",\"name\":\"jeff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"caption\":\"jeff\"},\"sameAs\":[\"http:\\\/\\\/35.72.55.111\"],\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?author=1\"},false]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[ AWS ] - install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04 - \u6df7\u6c34\u6478\u9b5a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webteach.tw\/?p=76","og_locale":"zh_TW","og_type":"article","og_title":"[ AWS ] - install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04 - \u6df7\u6c34\u6478\u9b5a","og_description":"install vsftp on ubu [&hellip;]","og_url":"https:\/\/www.webteach.tw\/?p=76","og_site_name":"\u6df7\u6c34\u6478\u9b5a","article_published_time":"2015-06-05T06:23:57+00:00","author":"jeff","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"jeff","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webteach.tw\/?p=76#article","isPartOf":{"@id":"https:\/\/www.webteach.tw\/?p=76"},"author":{"name":"jeff","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"headline":"[ AWS ] &#8211; install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04","datePublished":"2015-06-05T06:23:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webteach.tw\/?p=76"},"wordCount":145,"commentCount":0,"keywords":["aws","ubuntu 14.04","Ubuntu 16.04 LTS","vsftp"],"articleSection":["AWS"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webteach.tw\/?p=76#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webteach.tw\/?p=76","url":"https:\/\/www.webteach.tw\/?p=76","name":"[ AWS ] - install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04 - \u6df7\u6c34\u6478\u9b5a","isPartOf":{"@id":"https:\/\/www.webteach.tw\/#website"},"datePublished":"2015-06-05T06:23:57+00:00","author":{"@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"breadcrumb":{"@id":"https:\/\/www.webteach.tw\/?p=76#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webteach.tw\/?p=76"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webteach.tw\/?p=76#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.webteach.tw\/"},{"@type":"ListItem","position":2,"name":"[ AWS ] &#8211; install vsftp on ubuntu 14.04 \/ 16.04 \/ 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.webteach.tw\/#website","url":"https:\/\/www.webteach.tw\/","name":"\u6df7\u6c34\u6478\u9b5a","description":"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webteach.tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520","name":"jeff","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","caption":"jeff"},"sameAs":["http:\/\/35.72.55.111"],"url":"https:\/\/www.webteach.tw\/?author=1"},false]}},"views":953,"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"_links":{"self":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":0,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}