Linux Cloud server builds FTP site

OPINION: Make the switch to a Linux operating system | Opinion |  redandblack.com

Overview

Very Secure FTP Daemon (vsftpd) is the default FTP server for most Linux distributions. This document describes how to use the vsftpd software to build the FTP service on the CentOS 7.6 64-bit CVM.

Software

The following software is used to build the FTP service.

  • Linux operating system: this document uses the public image CentOS 7.6 as an example.
  • Vsftpd: this document uses vsftpd 3.0.2 as an example.

Directions

Step 1: log in to the Cloud Console

Step 2: install vsftpd

  1. Run the following command to install vsftpd:yum install -y vsftpd
  2. Run the following command to enable vsftpd autostart.systemctl enable vsftpd
  3. Run the following command to start the FTP service:systemctl start vsftpd
  4. Run the following command to check that the service has been started:netstat -antup | grep ftp If the following appears, the FTP service has been successfully started.

    By default, vsftpd has enabled the anonymous access mode. This mode allows you to log in to the FTP server without entering a username or password, but you cannot modify or upload files.

Step 3: configure vsftpd

  1. Run the following command to create a Linux user (such as ftpuser) for the FTP service:useradd ftpuser
  2. Run the following command to set the password for ftpuser:passwd ftpuser After entering the password, press Enter. The password you entered will not be displayed by default. This document uses the password tf7295TFY as an example.
  3. Run the following command to create a file directory (such as /var/ftp/test) for the FTP service:mkdir /var/ftp/test
  4. Run the following command to modify the directory permission:chown -R ftpuser:ftpuser /var/ftp/test
  5. Run the following command to open the vsftpd.conf file:vim /etc/vsftpd/vsftpd.conf
  6. Press i to switch to the edit mode. Select an FTP mode as needed and modify the vsftpd.conf configuration file.
    1. Modify the following configuration parameters, set the login permissions for anonymous users and local users, set the path for storing the exceptional user list, and enable listening on IPv4 sockets.anonymous_enable=NO local_enable=YES chroot_local_user=YES chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list listen=YES
    1. Add the pound sign (#) at the beginning of the following line to comment out listen_ipv6=YES and disable listening on IPv6 sockets.#listen_ipv6=YES
    2. Add the following configuration parameters, enable the passive mode, set the working directory for local users after login, and set the port range that the CVM can use to transmit data.local_root=/var/ftp/test allow_writeable_chroot=YES pasv_enable=YES pasv_address=xxx.xx.xxx.xx # Replace xxx.xx.xxx.xx with the public IP address of your Linux CVM pasv_min_port=40000 pasv_max_port=45000
  7. Press Esc and enter :wq to save and close the file.
  8. Run the following command to create and edit the chroot_list file.vim /etc/vsftpd/chroot_list
  9. Press i to enter the edit mode. Enter one username per line. After the configuration is completed, press Esc and enter :wq to save and close the file.
    If you do not need to set exceptional users, skip this step and directly enter :wq to close the file.
  10. Run the following command to restart the FTP service:systemctl restart vsftpd

Step 4: configure security groups

After building the FTP service, configure inbound rules for the Linux CVM based on the actually used FTP mode.
Most clients convert IP addresses in LANs. If you are using the FTP active mode, ensure that the client has obtained the real IP address. Otherwise, the client may fail to log in to the FTP server.

  • Active mode: open the port 21.
  • Passive mode: open the ports 21 and all ports ranging from pasv_min_port to pasv_max_port set in the configuration file, such as the ports 40000-45000 in this document.

Step 5: verify the FTP service

You can use tools such as the FTP client software, browser, or file manager to verify the FTP server. This document uses the file manager of the client as an example.

  1. Open an Internet Explorer on the client, choose Tools > Internet Options, and click the Advanced tab to modify the configuration based on the selected FTP mode.
    • Active mode: deselect Passive FTP.
    • Passive mode: select Passive FTP.
  2. Open the PC where the client is installed, type the following address in the address box of the browser, and press Enter, as shown below:ftp://CVM public IP address:21
  3. In the pop-up window, enter the username and password configured in Step 3.
    In this document, the username is ftpuser, and the password is tf7295TFY.
  4. You can upload and download files after a successful login.

51 comments

  1. C_THR95_2111

    Asking questions are genuinely nice thing if you are not understanding something fully, except this article presents pleasant understanding yet.

    https://forums.hostsearch.com/member.php?218437-MatthewSampson

  2. hai san Hoang Long

    Wanted to drop a remark and let you know your Feed isnt working today. I tried including it to my Google reader account but got nothing.

    https://penzu.com/public/8b9a6edf

  3. SarahBog

    Вебсайт знакомств для зрелых с бесплатной регистрацией, где позволено отыскать женщину и мужчину. Сей сервис называет себя настоящим проводником пристрастия и услады.
    лысые женщины знакомства

  4. Bogdanimt

    Привет дамы и господа!
    Предлагаем Вашему вниманию изделия из стекла для дома и офиса.Наша организация ООО «СТЕКЛОЭЛИТ» работает 10 лет на рынке этой продукции в Беларуси.Офис сегодня – это не пыльная комната в панельном здании, а лицо компании, его визитная карточка. Во многом это определяет интерьер, но также огромное значение имеют дверные конструкции и стеклянные перегородки в офисе. Появившись в качестве перегородок достаточно давно, стеклянные стены использовались чаще всего просто в качестве разделителя помещения, и только недавно они вошли в список интерьерных изюминок. В своих конструкциях мы используем стекло от лучшего мирового производителя листового стекла AGC GLASS EUROPE.
    Более подробная информация размещена https://drive.google.com/file/d/1vmrY5GSwVaOZLTTZYDu9eRJGb7VqrLSr/view?usp=sharing
    Увидимся!

  5. https://www.teachertube.com/user/channel/jellyone https://www.amazon.com/Vont-Smart-Body-Scale-Black/dp/B08XYX8RDR/?th=1

    Pretty! This has been an extremely wonderful article.Many thanks for providing this info.Feel free to surf to my blog ... Keto Lite

    {https://amazoncom8.godaddysites.com|https://amazon32.mystrikingly.com|https://www.tumblr.com/blog/robertpattnssonn|https://telegra.ph/amazoncom-02-09-2|https://justpaste.it/8qfkh|https://richardpattersonnz.wixsite.com/my-site|https://amazon765.flazio.com/home|https://penzu.com/p/729eef8d|https://scotthatley.doodlekit.com/home#|https://ba3167754f67.simbla-sites.com/|https://scotthatley.ukit.me/|https://scotthatley.bcz.com/home/|https://juliesimpsong.voog.com/|https://vont-smart-body.my-free.website/|https://vont-smart-body.webflow.io/|https://articlerockstars.com/what-are-smart-scales-for-weight-measurement/|https://openarticlesubmission.com/what-is-the-vont-smart-body-scale/|https://articlesmaker.com/what-are-the-benefits-of-using-a-smart-body-scale/|https://articlewipe.com/why-should-you-measure-body-composition/|https://greatarticles.co.uk/what-is-a-smart-bmi-body-scale/|https://pressreleasepost.co.uk/can-a-smart-scale-help-you-lose-weight/|https://articleabode.com/what-all-things-you-can-measure-with-a-smart-scale/|https://globalarticlefinder.com/can-you-connect-smart-weighing-machines-with-bluetooth/|https://thearticlesdirectory.co.uk/how-to-find-the-best-smart-scale-in-the-market/|https://yourarticles.co.uk/can-you-connect-a-smart-scale-to-your-phone/|https://popularticles.com/using-smart-scale-for-weight-training/|https://articlesjust4you.com/what-are-the-different-types-of-weight-loss-technology/|https://pressreleasepedia.com/are-smart-scales-good-for-weight-loss/|https://articleusa.com/how-do-you-use-a-smart-body-scale/|https://articlessubmissionservice.com/what-all-things-you-can-do-with-a-smart-body-scale/|https://articledirectoryzone.com/what-does-vont-smart-body-scale-do/|https://phenomenalarticles.com/what-are-the-advantages-of-having-a-smart-scale-at-home/|https://articleestates.com/is-it-safe-to-use-a-smart-body-scale/|https://submitafreearticle.com/measure-body-water-and-body-fat-with-a-smart-scale/|https://www.scoop.it/topic/are-smart-scales-really-worth-it|https://disqus.com/by/hawnalah/about/|https://influence.co/hemadona/about

  6. ??????

    I loved your article post.Really thank you!

    https://helloblacks.wordpress.com/

  7. https://www.youtube.com/watch?v=UtJfug2L8EY top bullet vibrators

    Great blog post.Really looking forward to read more. Will read on...

    {https://www.youtube.com/watch?v=LBaXxiFLlFQ

  8. Party rentals Fontana CA

    I really enjoy the article post.Much thanks again. Will read on...

    https://ratemymix.com/members/desireneck9/activity/229903/

  9. testosterone booster women

    Fantastic blog post.Really looking forward to read more. Really Great.

    https://spacecoastdaily.com/2022/02/the-best-herbal-testosterone-booster-which-test-is-the-best/

  10. Christen

    Investing in an Search engine optimization agency that knows its stuff is a big decision.

    My blog ... local seo campaign

  11. webcam online

    Super information it is surely. Friend on mine has been looking for thisinfo.

    https://harispence.yooco.org/

  12. Car insurance Dubai

    Hmm is anyone else encountering problems with thhe ictures onnthis blog loading? I'm trying to find out if its a problem on my end orif it's the blog. Any feedback would be greatly appreciated.

    https://www.icy-veins.com/forums/profile/141570-ncaliaco/?tab=field_core_pfield_11

  13. ?????

    What’s up every one, here every one is sharing these kinds of know-how, therefore it’s nice to read this blog, and I used to pay a quick visit this blog everyday.

    https://www.coinswash.com

  14. vibrator kit

    Very good blog.Much thanks again. Keep writing.

    https://www.youtube.com/watch?v=wozZCLKSsz4

  15. best prostate massager

    Appreciate you sharing, great article post. Will read on...

    https://www.youtube.com/watch?v=yd9lt_sB7Ww

  16. เครดิตฟรีไม่ต้องฝากไม่ต้องแชร์

    I really like and appreciate your blog article.Really thank you! Great.

    https://luckywinauto.com/เครดิตฟรีไม่ต้องฝาก/

  17. Candice

    If some one wants expert view about running a blog afterward i advise him/her
    to pay a visit this weblog, Keep up the fastidious work.

    Look at my blog :: gali

  18. how much to replace a roof

    Great blog article.Really looking forward to read more. Great.

    https://bestroofingtoronto.blogspot.com/2020/06/roofers-in-downtown-toronto.html

  19. check it out

    This is a very good tip particularly to those new to the blogosphere.Brief but very accurate information... Thank you for sharing this one.A must read post!

    https://t.co/pqqkT6KqB6

  20. this website

    Hi, just wanted to mention, I liked this blog post. It was helpful. Keep on posting!

    https://decide.riogrande.rs.gov.br/profiles/269841782036/following

  21. painters in toronto

    Muchos Gracias for your blog post.Really thank you! Keep writing.

    https://maps.google.ee/url?q=https://allpainting.ca

  22. rent a bounce house in Phoenix

    Heya! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no back up. Do you have any methods to protect against hackers?

    https://milkyway.cs.rpi.edu/milkyway/show_user.php?userid=2502668

  23. for more information

    kayseri hava durumu 15 günlük; kayseri için hava durumu en güncel saatlik, günlük ve aylık tahminler.

    http://silktower.site/story/12896

  24. thiet bi son tinh dien ha noi

    Excellent post. I was checking continuously this blog and I am impressed! Very useful information specially the last part 🙂 I care for such information much. I was seeking this particular info for a long time. Thank you and best of luck.

    https://www.metal-archives.com/users/DaleDouglas

  25. ???????

    Aw, this was a very good post. Spending some time and actual effort to make a very good article... but what can I say... I put things off a whole lot and never seem to get anything done.

    https://www.coinswash.com

  26. landscaping contractors Denver CO
  27. ??????

    What as up, just wanted to say, I enjoyed this article. It was practical. Keep on posting!

    https://helloblacks.wordpress.com

  28. greatpeople me

    Great post. I was checking continuously this blog and I'm impressed! Very helpful information specifically the last part 🙂 I care for such information much. I was seeking this particular information for a very long time. Thank you and best of luck.

    https://www.abolition-deterrage.com/5486/feed-kroger-employee-website-new-light-on-a-relevant-point/

  29. ทางเข้าSUPERSLOT

    wow, awesome article post.Much thanks again. Cool.

    https://superslot888.net/

  30. สล็อต666

    Wow, great post.Really thank you! Awesome.

    https://slotxogame88.net/สล็อต-888

  31. Marilyndunda

    Hello. And Bye.
    http://kfsdfjkalkjszzz.com

  32. Tent Rentals NYC

    Hello mates, its great article about cultureand completely explained, keep it up all the time.

    https://bookmarkstore.download/story.php?title=tent-rentals-manhattan#discuss

  33. flood damage

    I am so grateful for your blog article.Really looking forward to read more. Awesome.

    https://www.aeriagames.com/user/rrestoration09/

  34. auto detailing kansas city

    Thank you ever so for you blog post. Will read on...

    https://prestigeautodetailingkc.com

  35. MichaelFub

    ПРОФЕССИОНАЛЬНЫЕ УСЛУГИ САНТЕХНИКА В СИМФЕРОПОЛЕ, ВЫЕЗЖАЕМ ПО ЗВОНКУ
    Производим быстрый выезд по Симферополю, с оказанием следующих услуг: прочистка канализации в Симферополе, пробивка труб, устранение засоров, промывка канализации. Симферополь и район, выезд в течении 10 мин.

    Если у вас засорились трубы в доме, звоните и наши специалисты отправятся на срочный выезд, чтобы устранить засор в трубах. Вызвать сантехника можно двумя способами: первый способ — это оставить заявку через on-line форму на сайте (оставить заявку можно в любое удобное для Вас время); второй способ, позвонить в офис нашей компании. Мы работаем с 9 до 22 ежедневно. В экстренном случае, Вы можете позвонить нам вне рабочее время. Оплата за экстренный вызов (ночной) производится по двойному тарифу. Лучше все же не доводить ситуацию до экстренного вызова. Как только у Вас начинают возникать подозрения о неполадках – лучше предотвратить неприятную ситуацию и обратиться за помощью заранее.

    Для пенсионеров, ветеранов, инвалидов, матерей одиночек, и других слабо защищенных слоев населения, на услуги сантехника действуют скидки.

  36. RichardBup

    Ukraine. No War! С 2012 г. с помощью Pinterest http://1541.ru помогаю Вам увеличить продажи в Etsy, на личных сайтах и Shopify, что дает Заказчикам до 100 000 usd дохода в месяц

  37. Long-distance movers

    I wanted to thank you for this very good read!! I absolutely loved every little bit of it. I have got you saved as a favorite to look at new things you postÖ

    https://designlike.com/5-industry-secrets-from-texas-long-distance-movers/

  38. Edwardmic

    ПРОФЕССИОНАЛЬНЫЕ УСЛУГИ САНТЕХНИКА В СИМФЕРОПОЛЕ, ВЫЕЗЖАЕМ ПО ЗВОНКУ
    Производим быстрый выезд по Симферополю, с оказанием следующих услуг: прочистка канализации в Симферополе, пробивка труб, устранение засоров, промывка канализации. Симферополь и район, выезд в течении 10 мин.

    Если у вас засорились трубы в доме, звоните и наши специалисты отправятся на срочный выезд, чтобы устранить засор в трубах. Вызвать сантехника можно двумя способами: первый способ — это оставить заявку через on-line форму на сайте (оставить заявку можно в любое удобное для Вас время); второй способ, позвонить в офис нашей компании. Мы работаем с 9 до 22 ежедневно. В экстренном случае, Вы можете позвонить нам вне рабочее время. Оплата за экстренный вызов (ночной) производится по двойному тарифу. Лучше все же не доводить ситуацию до экстренного вызова. Как только у Вас начинают возникать подозрения о неполадках – лучше предотвратить неприятную ситуацию и обратиться за помощью заранее.

    Для пенсионеров, ветеранов, инвалидов, матерей одиночек, и других слабо защищенных слоев населения, на услуги сантехника действуют скидки.

  39. male prostate massager

    I am so grateful for your blog article.Really looking forward to read more. Much obliged.

    https://www.youtube.com/watch?v=kl28cBaWkiQ

  40. estimulacion para bebes de 0 meses

    Hi, I do believe this is a great blog. I stumbledupon it 😉 I will return once again since i have book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide others.

    https://toolbarqueries.google.com.pk/url?q=https://www.estimulaciontempranaparabebes.com/

  41. ewsrytoel
  42. ทางเข้าambbet

    Im thankful for the article.Really looking forward to read more. Great.

    https://amb19.com/

  43. Java Burn Coffee review

    This blog was... how do I say it? Relevant!! Finally I have found something that helped me.Thanks a lot!

    https://stayfitguru.com/java-burn-coffee-revolutionary-new-weight-loss-coffee/

  44. Regetourb

    sildenafil dosages what is sildenafil for

  45. Bond Clean Brisbane

    I'm extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it?s rare to see a great blog like this one nowadays..

    https://writeablog.net/burstbrian6/discover-the-very-best-bond-cleaner-with-us

  46. ??????

    I want to to thank you for this fantastic read!! I certainly loved every little bit of it. I have got you bookmarked to check out new stuff you post...

    https://helloblacks.wordpress.com

  47. interesting information

    Hey there! Do you know if they make any plugins to help with Search Engine Optimization?I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains.If you know of any please share. Many thanks!

    https://www.modernman.com/10-tips-for-an-effective-office-relocation-strategy/

  48. Bogdansfj

    Здравствуйте товарищи!
    Более подробная информация размещена https://drive.google.com/file/d/1e-qsrosEBvPPvIxO1GO9qvs5WH9WS7kV/view?usp=sharing
    Предлагаем Вашему вниманию изделия из стекла для дома и офиса.Наша организация ООО «СТЕКЛОЭЛИТ» работает 10 лет на рынке этой продукции в Беларуси.Стоит задача грамотно и недорого организовать офисное помещение в короткий срок? Возникли трудности с планировкой? Предлагаем оптимальное решение — современные офисные перегородки на заказ, которые позволят офис разделить по отделам или предоставить каждому сотруднику личное рабочее пространство для спокойной, уединенной работы.
    Увидимся!

评论已关闭。

Related recommendation

No related articles!

微信扫一扫,分享到朋友圈

Linux Cloud server builds FTP site