How to install an FTP Server on Ubuntu 22.04 with VSFTPD

Поділитися
Вставка
  • Опубліковано 21 лис 2022
  • In this video I will show you how to install VSFTPD to Setup FTP Server on Ubuntu 22.04. FTP is one of the oldest Internet protocols that is still widely used and is a standard protocol in TCP/IP.
    Get Kamatera VPS (30 days free trial)
    zacs-tech.com/go/kamatera-vps/
    Get RedHosting VPS
    zacs-tech.com/go/rosehosting/
    Get InterServer VPS
    zacs-tech.com/go/interserver/
    Get Hawk Host VPS
    zacs-tech.com/go/hawkhost/
    Register domain name
    tinyurl.com/y8hz9seu
    Some of the commands
    sudo chown nobody:nogroup /home/username/ftp
    sudo chmod a-w /home/username/ftp
    sudo mkdir /home/username/ftp/upload
    sudo chown user:user /home/user/ftp/upload
    echo "My FTP Server" | sudo tee /home/user/ftp/upload/demo.txt
    user_sub_token=$USER
    local_root=/home/$USER/ftp
    userlist_enable=YES
    userlist_file=/etc/vsftpd.userlist
    userlist_deny=NO
    echo "user" | sudo tee -a /etc/vsftpd.userlist
    sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem
    allow_anon_ssl=NO
    force_local_data_ssl=YES
    force_local_logins_ssl=YES
    DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    "Disclosure: Some of the links in this video description may be affiliate links, which means I earn a commission if you make a purchase through the link. This comes at no additional cost to you and helps support this channel.

КОМЕНТАРІ • 51

  • @publicationsdesordonnees
    @publicationsdesordonnees 8 місяців тому +3

    perfect video, short, complete, totally efficient ! Bravo !

    • @markdevelop7770
      @markdevelop7770 7 місяців тому

      I fully agree. Thanks for this great video. Nice voice, good explained and it works. I spent a lot of time to get running my vsftpd in SSL-Mode until I found this video. @ZacsTech: Feel you as a hero 🙂

  • @F6347_VR
    @F6347_VR Рік тому +13

    You forgot to put this line in the descriptions, btw, Thanks you a lot!
    sudo ufw allow from any to any port 20,21,10000:10100 proto tcp

  • @knuppelkastenlp8931
    @knuppelkastenlp8931 3 місяці тому +1

    Perfect. This Video helped me a lot! Thank you

  • @eliezerhilario
    @eliezerhilario 4 місяці тому

    Excellent. This video helped me a lot. Thank you so much

  • @iamtheyikes
    @iamtheyikes Місяць тому

    Brilliant tutorial. Please keep them coming!!!

  • @imcslol1
    @imcslol1 10 місяців тому +1

    perfect video thank you really much!

  • @vladislavkaras491
    @vladislavkaras491 6 місяців тому

    Thanks for the demonstration!

  • @user-uw4jz8lr3e
    @user-uw4jz8lr3e 2 місяці тому

    Extremely helpful, thank you!

  • @LePygargue
    @LePygargue Рік тому

    Solid base, had to adapt a bit for my usecase

  • @dislodged7270
    @dislodged7270 Рік тому

    Oh my god it worked first try. Thank you

  • @alieslami2309
    @alieslami2309 6 місяців тому

    Tank you so much. I learnt very much. 😘

  • @j.j.s.g.3259
    @j.j.s.g.3259 Рік тому +2

    The timing for this video was perfect, because we are using vsftpd in class, and I didn't understood half of it, now with your explanations and your calm music, I think it makes more sense to me now.
    And other thing, why do you use the key and the certificate both in the same file? And have you or can you upload about how to make virtual users in vsftpd? I will appreciate it 😅😊

  • @harveybc
    @harveybc 15 днів тому

    Excellent video. If I could have typed better it would have went very smooth. All problems encountered were my typo's. But to quote a certain Dr., "It is alive!!"

  • @KevinJones-ty5hg
    @KevinJones-ty5hg 7 місяців тому

    Thank's! I love you!

  • @user-fy1yr6mq1g
    @user-fy1yr6mq1g 3 місяці тому +2

    Hello, GREAT VIDEO. But I had to change change the passive ports from (pasv_min_port : 10000 ; pasv_max_port : 10100) to (pasv_min_port : 40000 ; pasv_max_port : 40100).

  • @dmtuan
    @dmtuan 2 місяці тому

    Very helpful. Thanks

  • @okthxbye_
    @okthxbye_ Рік тому

    helped alot thx mate

  • @salluc1712
    @salluc1712 Рік тому

    thank you so much

  • @agungwahyu7945
    @agungwahyu7945 Рік тому +2

    how to check demo file from windows?

  • @ethangender
    @ethangender 9 місяців тому

    SO FAR i was able to create ftp server and connect however there is a bug with the folder because the client from FileZilla ins unable to list the folders

  • @milivojevujadinovic1567
    @milivojevujadinovic1567 5 місяців тому

    Thank you so much

  • @netmaster777
    @netmaster777 Місяць тому

    thanks, great!

  • @DontLetsPlay
    @DontLetsPlay 7 місяців тому +1

    how can i grant full acces to all folders? Like an admin?

  • @simonsayer8036
    @simonsayer8036 Рік тому

    Hey, great video, quick question on resiliency, would you deploy this on a cluster or would you run in active passive mode with 2nd VM in paired region (Azure)

  • @user-jy2wk5zw9s
    @user-jy2wk5zw9s 5 місяців тому

    Thanks mate

  • @abdullahshamroz7992
    @abdullahshamroz7992 3 місяці тому

    I am using linux, how to add files to the upload folder so I can access them from my iphone? simply copy paste is not available, you cant paste there is no option.

  • @Lennert1712
    @Lennert1712 2 місяці тому

    Hello, i did everything like i am supposed to but when i want to connect it tells me there is no route to host. Anyone know how to fix this issue?

  • @Hunboti58
    @Hunboti58 5 місяців тому

    Hi! I want to connect my FTP server while I'm in ooutside my home network. I tried the outside IP address, but it doesn't work. Please let me know if there is something I can do!
    Anyways the video is perfect and helped me to reach my files in my home network.

  • @ss-vv1ix
    @ss-vv1ix 8 місяців тому

    mine can't connect in fillezila, it says "connection timeout"

  • @pradeeptiwary2131
    @pradeeptiwary2131 10 місяців тому

    It doesnt work after ssl certificate enable

  • @Ragedrp
    @Ragedrp 11 місяців тому

    it is not connecting with public IP the port is open

  • @MaxDolotboy
    @MaxDolotboy 11 місяців тому +3

    So this create a FTP server with a private dir for every user, but if I simply want to access something else on the Ubuntu server with a user that has admin/sudo power, for example to upload a website into apache2 folder's, can I with this ? Or it is simply a FTP server that is used for storage distribution
    EDIT: I added my default user in the userlist (Didn't create a new one) and I created a FTP folder him because otherwise I was getting this error
    Error: GnuTLS error -15 in gnutls_record_recv: An unexpected TLS packet was received.
    Error: Could not read from socket: ECONNABORTED - Connection aborted
    Error: Could not connect to server
    But this user can't go anywhere else than his ftp folder, it is an admin, he have sudo perm and all. I simply want to be able to access my website files located in the apache's folders what should I do ?
    EDIT2: I used mount
    mkdir /home/user2/ftp/www
    chown user2:user2 /home/user2/ftp/www
    mount --bind /var/www/html/ /home/user2/ftp/www

    • @w.r3679
      @w.r3679 10 місяців тому +1

      Thank you very much for your help. With your tips I managed to do the same thing you wanted to do. I wouldn't have made it without your comment.

  • @frrndr75
    @frrndr75 Рік тому +1

    hello, i have a question? How do I change the password (too weak) of the user I created?

    • @zacstech
      @zacstech  Рік тому +1

      Check this link itslinuxfoss.com/change-password-ubuntu-22-04/

  • @rljosch
    @rljosch 5 місяців тому

    thanks

  • @ashwinchavan6391
    @ashwinchavan6391 11 місяців тому

    my ftp sever is getting failed

  • @salzaarooj8015
    @salzaarooj8015 Рік тому +5

    I follow you every step till filezilla but when i click on quick connect .it not works.i use hotspots for internet conection there is a problem in that?

    • @cenr9372
      @cenr9372 Рік тому

      same issue, just set up filezilla on a second vurtial machine on a local network, bit easire to use... to install filezilla just do "sudo apt install filezilla". im using ubuntu and debian and it works

    • @gr0wnup5
      @gr0wnup5 2 місяці тому

      Yes! Both your devices MUST be on same WiFi network
      And should be reachable inside that network

  • @wisetone
    @wisetone 3 місяці тому

    sudo: nano: command not found

  • @aliimrannagori8069
    @aliimrannagori8069 Рік тому +1

    Good, but some more explanation can be added.

  • @alifurkantekdemir4262
    @alifurkantekdemir4262 4 місяці тому

    Firstly thanks for video ZachsTech. I watched this video and I followed exactly what was done. But that have some errors let me explain. First error is "500 OOPS: cannot change directory" I get this in FileZilla and that's solution is "sudo chmod 755 /home/phil/" after that I get secondly error. It's a "553 Could not create file" error. This problem is if you try put any file to ftp server I get this error. And that solution is "sudo chown -R phil /home/phil/" and I open the "vsftpd.conf" file and added this line "allow_writeable_chroot=YES" in the end of the line. Then restart the vsftpd service and its running without any errors.

  • @Lastlightx94
    @Lastlightx94 Рік тому

    thx

  • @Luka_c123
    @Luka_c123 9 місяців тому

    dosent work xd

    • @soonislive
      @soonislive 4 місяці тому

      Working😅 you made some mistake

    • @agentnightmare8629
      @agentnightmare8629 2 місяці тому

      Skill issue

    • @Luka_c123
      @Luka_c123 2 місяці тому

      @@agentnightmare8629 trueeeeeee

    • @soonislive
      @soonislive 2 місяці тому

      @@agentnightmare8629 who!?

  • @gktirkha
    @gktirkha 8 місяців тому

    9:27
    i belive the keyout extenssion is .key
    replaced vsftpd.pem with vsftpd.key
    sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.key -out /etc/ssl/private/vsftpd.pem