{"id":722,"date":"2016-12-19T15:37:13","date_gmt":"2016-12-19T15:37:13","guid":{"rendered":"http:\/\/192.168.2.32:8082\/?p=722"},"modified":"2017-01-06T08:21:46","modified_gmt":"2017-01-06T08:21:46","slug":"ftp-server-auf-ubuntu-16-04-1-vsftpd","status":"publish","type":"post","link":"https:\/\/www.dev-metal.ch\/?p=722","title":{"rendered":"FTP Server auf Ubuntu 16.04.1 (vsftpd)"},"content":{"rendered":"<h3>Installation<\/h3>\n<pre class=\"lang:sh decode:true\">sudo apt install vsftpd<\/pre>\n<p>Das standard-Directory ist <span class=\"file filename\">\/srv\/ftp, welches f\u00fcr den User ftp bei der Installation eingerichtet wird.<\/span><\/p>\n<h3>Konfiguration<\/h3>\n<p><span class=\"file filename\">In File \/etc\/vsftpd.conf folgendes Konfig anpassen (reboot nicht vergessen):<br \/>\n<\/span><\/p>\n<pre class=\"lang:sh decode:true  \">write_enable=YES\r\nanonymous_enable=NO\r\nftpd_banner=Willkommen zu ftp.intelli.ch.\r\nuse_localtime=YES\r\nchroot_local_user=YES\r\n#Port nicht 21 sondern 345\r\nlisten_port=345<\/pre>\n<p>Grunds\u00e4tzlich erlaubt vsftpd allen Systemusern den Zugriff \u00fcber FTP. Nun soll aber nicht allen Systemusern der Zugriff erlaubt werden. Daf\u00fcr modifizieren wird das file <em>\/etc\/vsftpd.chroot_list. <\/em>Die in diesem File enthaltenen User k\u00f6nnen\u00a0 zugreifen:<\/p>\n<pre class=\"lang:sh decode:true\">chroot_list_enable=YES\r\nchroot_list_file=\/etc\/vsftpd.chroot_list<\/pre>\n<h3>User erstellen<\/h3>\n<p>Einen User erstellen, der auf FTP Zugriff erhalten soll<\/p>\n<pre class=\"lang:sh decode:true \">sudo adduser ftpuser<\/pre>\n<h3>Verschl\u00fcsselung<\/h3>\n<p>Ich erstelle die M\u00f6glichkeit \u00fcber FTPS zu kommunizieren. Dazu in <span class=\"cmd command\"><span class=\"file filename\"><em>\/etc\/vsftpd.conf<\/em><\/span><\/span> folgende Zeilen erfassen:<\/p>\n<pre class=\"lang:sh decode:true\">ssl_enable=Yes\r\nrsa_cert_file=\/etc\/ssl\/certs\/ssl-cert-snakeoil.pem\r\nrsa_private_key_file=\/etc\/ssl\/private\/ssl-cert-snakeoil.key<\/pre>\n<p>Mit Filezilla verbinden<\/p>\n<p><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2016\/12\/ftps.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-728\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2016\/12\/ftps-300x136.png\" alt=\"\" width=\"300\" height=\"136\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2016\/12\/ftps-300x136.png 300w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2016\/12\/ftps-2x1.png 2w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2016\/12\/ftps.png 406w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h3>Referenzen<\/h3>\n<ul>\n<li><a href=\"https:\/\/help.ubuntu.com\/lts\/serverguide\/ftp-server.html\">https:\/\/help.ubuntu.com\/lts\/serverguide\/ftp-server.html<\/a><\/li>\n<li><a href=\"https:\/\/www.ostechnix.com\/install-vsftpd-server-ubuntu-16-04-lts\/\">https:\/\/www.ostechnix.com\/install-vsftpd-server-ubuntu-16-04-lts\/<\/a><\/li>\n<li><a href=\"https:\/\/blog.novatrend.ch\/2015\/11\/23\/manchmal-braucht-man-einen-ftp-server\/\">https:\/\/blog.novatrend.ch\/2015\/11\/23\/manchmal-braucht-man-einen-ftp-server\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Installation sudo apt install vsftpd Das standard-Directory ist \/srv\/ftp, welches f\u00fcr den User ftp bei der Installation eingerichtet wird. Konfiguration In File \/etc\/vsftpd.conf folgendes Konfig anpassen (reboot nicht vergessen): write_enable=YES anonymous_enable=NO ftpd_banner=Willkommen zu ftp.intelli.ch. use_localtime=YES chroot_local_user=YES #Port nicht 21 sondern 345 listen_port=345 Grunds\u00e4tzlich erlaubt vsftpd allen Systemusern den Zugriff \u00fcber FTP. Nun soll aber nicht [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-722","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"modified_by":"ralph","_links":{"self":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=722"}],"version-history":[{"count":12,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/722\/revisions"}],"predecessor-version":[{"id":735,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/722\/revisions\/735"}],"wp:attachment":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}