{"id":1854,"date":"2018-10-28T03:50:55","date_gmt":"2018-10-27T18:50:55","guid":{"rendered":"https:\/\/www.dogrow.net\/linux\/?p=1854"},"modified":"2019-11-04T22:35:55","modified_gmt":"2019-11-04T13:35:55","slug":"blog100","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/linux\/blog100\/","title":{"rendered":"(100) Raspberry Pi\u3067 FTP\u3092\u4f7f\u3044\u305f\u3044\u3002"},"content":{"rendered":"<h1 class=\"my_h\">1. \u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p><span class=\"my_fc_deeppinkB\">ftp<\/span> \u304c <span class=\"my_fc_crimsonBBig\">insecure<\/span> \u306a\u306e\u306f\u627f\u77e5\u6e08\u307f\u3060\u304c\u3002<br \/>\n<span class=\"my_fc_deeppinkB\">ftp<\/span> \u3092\u4f7f\u3063\u3066\u30e9\u30ba\u30d1\u30a4\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u30b5\u30fc\u30d0\u30fc\u3078\u9001\u4fe1\u3057\u305f\u3044\u3002<br \/>\n<span class=\"my_fc_deeppinkB\">ftp<\/span> \u3092\u4f7f\u3063\u3066\u30e9\u30ba\u30d1\u30a4\u5185\u3078\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3044\u3002<br \/>\n<span class=\"my_fc_deeppinkB\">ftp<\/span> \u3092\u4f7f\u3063\u3066\u30e9\u30ba\u30d1\u30a4\u5185\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3044\u3002<\/p>\n<p>\u3064\u307e\u308a&#8230;<br \/>\n<span class=\"my_fc_deeppinkBBig\">\u30e9\u30ba\u30d1\u30a4\u3092 FTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001FTP\u30b5\u30fc\u30d0\u30fc\u306e\u4e21\u65b9\u3067\u4f7f\u3044\u305f\u3044\u3002<\/span><\/p>\n<h1 class=\"my_h\">2. \u3084\u3063\u3066\u307f\u308b<\/h1>\n<h2 class=\"my_h\">(1) FTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b<\/h2>\n<h3 class=\"my_h\">1) Raspberry Pi\u306b ftp\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<pre class=\"my_pre\">\r\n$ sudo apt-get install <span class=\"my_fc_deeppinkB\">ftp<\/span>\r\n<\/pre>\n<h3 class=\"my_h\">2) ftp\u30b3\u30de\u30f3\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u3059\u308b\u3002<\/h3>\n<p>ftp\u30b3\u30de\u30f3\u30c9\u3092 1\u884c\u3067\u307e\u3068\u3081\u3066\u7c21\u6f54\u306b\u66f8\u3051\u308c\u3070\u3088\u3044\u306e\u3060\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30de\u30f3\u30c9\u3092\u66f8\u3044\u3066\u304a\u304d\u3001\u3053\u308c\u3092 ftp\u306b\u8aad\u307e\u305b\u308b\u306e\u304c\u5206\u304b\u308a\u6613\u3044\u3068\u601d\u3063\u305f\u3002<\/p>\n<pre class=\"my_pre\">\r\nHOST=\"www.example.com\"\r\nUSER=\"aaaaa\"\r\nPASS=\"bbbbb\"\r\nFILE=\"ccccc.txt\"\r\nSCRIPT=\"ftpscript.txt\"\r\n\r\nCMD=\"\r\nopen $HOST\r\nuser $USER $PASS\r\nascii\r\nput $FILE\r\nquit\r\n\"\r\n\r\necho \"$CMD\" &gt; $SCRIPT\r\n<span class=\"my_fc_deeppinkB\">ftp<\/span> -n &lt; $SCRIPT\r\n<\/pre>\n<p>\u3053\u3053\u307e\u3067\u306e\u4f5c\u696d\u306b\u3088\u308a\u3001\u4ee5\u4e0b\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<br \/>\n\u30fb\u30e9\u30ba\u30d1\u30a4\u4e0a\u3067 ftp\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u5916\u90e8\u306eFTP\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u9593\u3067\u30d5\u30a1\u30a4\u30eb\u9001\u53d7\u4fe1\u3059\u308b\u3053\u3068\u3002<\/p>\n<h2 class=\"my_h\">(2) FTP\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b<\/h2>\n<h3 class=\"my_h\">1) Raspberry Pi\u306b vsftpd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<pre class=\"my_pre\">\r\nsudo apt-get install <span class=\"my_fc_deeppinkB\">vsftpd<\/span>\r\n\r\nsudo systemctl enable <span class=\"my_fc_deeppinkB\">vsftpd<\/span>\r\nsudo systemctl start <span class=\"my_fc_deeppinkB\">vsftpd<\/span>\r\nsudo systemctl status <span class=\"my_fc_deeppinkB\">vsftpd<\/span>\r\n<\/pre>\n<h3 class=\"my_h\">2) vsftpd\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3002<\/h3>\n<p>\u65e2\u5b58\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u9000\u907f\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"my_pre\">\r\ncd \/etc\r\nsudo cp <span class=\"my_fc_deeppinkB\">vsftpd.conf<\/span> vsftpd.conf.org\r\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre class=\"my_pre\">\r\nsudo vi <span class=\"my_fc_deeppinkB\">vsftpd.conf<\/span>\r\n<\/pre>\n<p>1) \u4e0b\u8a18 3\u30ab\u6240\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# Uncomment this to allow local users to log in.\r\nlocal_enable=YES\r\n#\r\n# Uncomment this to enable any form of FTP write command.\r\nwrite_enable=YES\r\n#\r\n# Default umask for local users is 077. You may wish to change this to 022,\r\n# if your users expect that (022 is used by most other ftpd's)\r\nlocal_umask=022\r\n<\/pre>\n<p>2) \u4e0b\u8a18 2\u30ab\u6240\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# ASCII mangling is a horrible feature of the protocol.\r\nascii_upload_enable=YES\r\nascii_download_enable=YES\r\n<\/pre>\n<p><span class=\"my_fc_crimsonB\">\u6b63\u3057\u304f\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u3066\u3044\u308b\u306e\u306b FTP\u3067<br \/>\n\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u66f4\u65b0\u3067\u304d\u306a\u3044\uff01\u300d<br \/>\n\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u524a\u9664\u3067\u304d\u306a\u3044\uff01\u300d<br \/>\n\u306a\u3093\u3066\u3068\u304d\u306f write_enable=YES \u304c\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u305f\u308a\u3059\u308b\u3002<\/span><\/p>\n<h3 class=\"my_h\">3) vsftpd\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/h3>\n<pre class=\"my_pre\">\r\nsudo systemctl restart <span class=\"my_fc_deeppinkB\">vsftpd<\/span>\r\nsudo systemctl status <span class=\"my_fc_deeppinkB\">vsftpd<\/span>\r\n<\/pre>\n<p>\u3053\u3053\u307e\u3067\u306e\u4f5c\u696d\u306b\u3088\u308a\u3001\u4ee5\u4e0b\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<br \/>\n\u30fb\u30e9\u30ba\u30d1\u30a4\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3092 FTP\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3002<br \/>\n\u30fb\u30e9\u30ba\u30d1\u30a4\u4e0a\u306b\u30d5\u30a1\u30a4\u30eb\u3092 FTP\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3002<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>1. \u3084\u308a\u305f\u3044\u3053\u3068 ftp \u304c insecure \u306a\u306e\u306f\u627f\u77e5\u6e08\u307f\u3060\u304c\u3002 ftp \u3092\u4f7f\u3063\u3066\u30e9\u30ba\u30d1\u30a4\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u30b5\u30fc\u30d0\u30fc\u3078\u9001\u4fe1\u3057\u305f\u3044\u3002 ftp \u3092\u4f7f\u3063\u3066\u30e9\u30ba\u30d1\u30a4\u5185\u3078\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3044\u3002 ftp \u3092\u4f7f\u3063\u3066\u30e9\u30ba\u30d1\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/linux\/blog100\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116,99],"tags":[],"class_list":["post-1854","post","type-post","status-publish","format-standard","hentry","category-ftp","category-raspberry-pi"],"views":20911,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/1854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/comments?post=1854"}],"version-history":[{"count":27,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/1854\/revisions"}],"predecessor-version":[{"id":2518,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/posts\/1854\/revisions\/2518"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/media?parent=1854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/categories?post=1854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/linux\/wp-json\/wp\/v2\/tags?post=1854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}