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.
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
Nice
Best
Very helpful video
Mast 👍
Sir,
Ftp uploading file kaya hota hai
please upload a video for firefox install and launch a browser using CLI
video already uploaded.
instead of yum can we use dnf command ?
Yes, in rhel 8 we can
@@NehraClasses cent os 8 ?
What if we want to create our own custom directory on server with a user other than anonymous and root please let me know
Yes, we can do that. Please raise a request for the same in our telegram channel with all details.
how can I access /var/www folder via filezilla? can you please create a video on this? thanks
Please join on demand tutorials membership and raise a request in our telegram channel
Sir could you please tell me how I can ping my Linux ip from windows crome
Please follow our RHCSA Playlist in the same sequence.
i can able to access the FTP from internet explorer but not able to access from chrome etc!!! how to troubleshoot for this ??
Check chrome settings
Sir facing issue of "entering passive mode ftp error " not able to access pub directory and ls commond
Please provide us all the details in our telegram channel.
Sir is this full configuration of ftp server?
Yes
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
Seems like selinux issue, please provide us more details in telegram channel.
550 Permission denied
plz provide error screenshot in telegram.