Configure FTP Server in RHEL 8 | File Transfer Protocol Server Configuration in Linux

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • Configure FTP Server in RHEL 8 | File Transfer Protocol Server Configuration in Linux
    ===
    Join this channel to get access to perks:
    / @nehraclasses
    ===
    Thanks for watching the video. If it helped you then, please do like & share it with others as well. Feel free to post your queries & suggestions, we will be glad to answer your queries.
    If you like our hard work then do subscribe to our channel & turn on the bell notification for latest updates.
    ===
    Contact Us:
    Follow our all social media accounts @NehraClasses
    Vikas Nehra's Twitter Handle: bit.ly/VikasNeh...
    Vikas Nehra's FB Account: / er.vikasnehra
    Vikas Nehra's Instagram Handle: / er.vikasnehra
    Registration Form: bit.ly/NehraCla...
    Twitter Handle: bit.ly/NehraCla...
    Facebook Page: nehraclasses
    Instagram: / nehraclasses
    Telegram Channel: t.me/NehraClasses
    WhatsApp Us: bit.ly/2Kpqp5z
    Email Us: nehraclasses@gmail.com
    ===
    ©COPYRIGHT. ALL RIGHTS RESERVED.

Комментарии • 28

  • @NehraClasses
    @NehraClasses  3 года назад +6

    FTP Server
    hostnamectl set-hostname ftpserver.local
    hostnamectl
    mount /dev/sr0 /mnt
    dnf repolist
    yum install -y ftp vsftpd
    vim /etc/vsftpd/vsftpd.conf
    anonymous_enable=YES
    systemctl start vsftpd.service
    systemctl enable vsftpd.service
    systemctl status vsftpd.service
    firewall-cmd --permanent --add-service=ftp
    firewall-cmd --reload
    firewall-cmd --list-all
    now go to web browser and type ftp://
    you will be able to access the "pub" folder
    cd /var/ftp/pub
    cal > calender.txt
    Now again go to web browser and access the pub folder and see whether you can download the file in your machine
    Now test using anonymous user inside console
    ftp localhost
    anonymous
    key in any password
    ls
    cd pub
    ls
    bye --> to come out
    Now we will try with a normal user
    su - rheladmin
    ll
    ftp localhost
    rheladmin
    key in the password
    ls ( to see the same files in the home directory of the user)
    pwd
    The difference between anonymous user login and localuser login is , if we login using anonymous user it goes to pub folder but if we login using local user it goes to home directory of the user.
    bye
    Now go to command prompt of your machine and use anonymous user to connect to ftp server
    ftp> get calender.txt
    Now check the parent folder and check
    To copy multiple files use the following command
    ftp> mget f1 f2 f3
    To copy files from client to ftp server use put command
    To copy multiple files use mput command
    Now we will use another linux machine as client and connect to ftp server
    No the client machine
    yum install -y ftp
    ftp ftpserverip
    username and password
    mget file1 file 2
    yes
    ftp ftpserver
    anonymous
    any password ( password should looks like email)
    We now test using browser inside Rhel machine
    If we want to disable anonymous users
    vim /etc/vsftpd/csftpd.conf
    anonymous_enable=NO
    systemctl start vsftpd.service
    Now if you try to access using web browser it will prompt you for username and password
    Now we will change the location of the public directory of the FTP Server
    mkdir /ftp
    vim /etc/vsftpd/csftpd.conf
    anonymous_enable=YES
    Also go to last line and insert the following
    anon_root=/ftp , now save the file
    systemctl start vsftpd.service
    ls -ldz /var/ftp/pub
    ls -ldz /ftp
    chcon -t public_content_t /ftp
    ls -ldz /ftp
    systemctl start vsftpd.service
    try ftp using anonymous user
    cd /ftp
    touch {1..10}.txt
    ftp localhost
    anonymous
    ls
    if we want to use default pub we go to
    vim /etc/vsftpd/csftpd.conf
    #anon_root=/ftp , now save the file
    systemctl start vsftpd.service

  • @GamerUttam
    @GamerUttam 4 года назад +3

    Best

  • @decoder6878
    @decoder6878 3 года назад +1

    Very helpful video

  • @azeemhasan707
    @azeemhasan707 Год назад +1

    Mast 👍

  • @madhabsantra8447
    @madhabsantra8447 3 года назад +1

    Sir,
    Ftp uploading file kaya hota hai

  • @ragulchandrasekar5979
    @ragulchandrasekar5979 2 года назад +1

    please upload a video for firefox install and launch a browser using CLI

  • @podishettivikram8681
    @podishettivikram8681 2 года назад +1

    instead of yum can we use dnf command ?

  • @abhinavpaul5960
    @abhinavpaul5960 3 года назад +1

    What if we want to create our own custom directory on server with a user other than anonymous and root please let me know

    • @NehraClasses
      @NehraClasses  3 года назад +1

      Yes, we can do that. Please raise a request for the same in our telegram channel with all details.

  • @ImrulHasanv
    @ImrulHasanv 3 года назад +1

    how can I access /var/www folder via filezilla? can you please create a video on this? thanks

    • @NehraClasses
      @NehraClasses  3 года назад

      Please join on demand tutorials membership and raise a request in our telegram channel

  • @niteshsingla5447
    @niteshsingla5447 2 года назад +1

    Sir could you please tell me how I can ping my Linux ip from windows crome

    • @NehraClasses
      @NehraClasses  2 года назад

      Please follow our RHCSA Playlist in the same sequence.

  • @wasim3617
    @wasim3617 2 года назад +1

    i can able to access the FTP from internet explorer but not able to access from chrome etc!!! how to troubleshoot for this ??

  • @sawantyagi2622
    @sawantyagi2622 3 года назад +1

    Sir facing issue of "entering passive mode ftp error " not able to access pub directory and ls commond

    • @NehraClasses
      @NehraClasses  3 года назад

      Please provide us all the details in our telegram channel.

  • @darshansolanki5762
    @darshansolanki5762 3 года назад +1

    Sir is this full configuration of ftp server?

  • @darshansolanki5762
    @darshansolanki5762 3 года назад +1

    Sir could not upload and download the file on ftp server and come to the error 550 failed to open file and 227 entering passive mode

    • @NehraClasses
      @NehraClasses  3 года назад

      Seems like selinux issue, please provide us more details in telegram channel.

  • @deepukoshy7359
    @deepukoshy7359 2 года назад +1

    550 Permission denied

    • @NehraClasses
      @NehraClasses  2 года назад

      plz provide error screenshot in telegram.