Linux FTP Server Configuration in Centos Redhat

Ftp server configuration
Server1(ip 192.168.0.254)
Step 1:install ftp package
#yum install vsftpd
Step 2:restart the service
#chkconfig vsftpd on
#service vsftpd restart
Client Side
Step 3: User login
[root@sys5 ~]# lftp u
priya 192.168.0.254
Password:
lftp priya@192.168.0.254:~> ls
drwxrxrx
2 2023 2023 1024 Aug 12 07:02 Desktop
drwxrxrx
lftp priya@192.168.0.254:~> get priya1
lftp priya@192.168.0.254:~> !ls
anacondaks.
cfg Desktop install.log priya1 xorg.conf
lftp priya@192.168.0.254:~> put anacondaks.
cfg
976 bytes transferred
lftp priya@192.168.0.254:~> ls
drwxrxrx
2 2023 2023 1024 Aug 12 07:02 Desktop
rwrr1
2023 2023 976 Sep 30 10:10 anacondaks.
cfg
drwxrxrx
2 0 0 1024 Sep 30 09:58 dir1
lftp priya@192.168.0.254:~> mget d
dir1/*
Total 2 files transferred
lftp priya@192.168.0.254:~> !ls
anacondaks.
cfg dir1 install.log priya1
lftp priya@192.168.0.254:~> quit
Guest login
[root@sys5 ~]# lftp 192.168.0.254
lftp 192.168.0.254:~> ls
drwxrxrx
15 0 0 4096 Sep 24 11:13 pub
lftp 192.168.0.254:/>quit
Deny users login via the ftp
Server:Step 1:  edit the configuration file
#vim /etc/vsftpd/vsftpd.conf
Line no:115
userlist_enable=YES
Step 2: add the user entry in user_list file
#vim /etc/vsftpd/user_list
priya
Step 3:restart the ftp service
#service vsftpd restart
Client
Step 4:root@sys5 ~]# lftp u
priya 192.168.0.254
lftp priya@192.168.0.254:~> ls
Login failed
lftp priya@192.168.0.254:/>quit
Deny users login via the ftp
Server:Step 1:add the user entry in ftpusers file
#vim /etc/vsftpd/ftpusers
priya
Step 2:restart the ftp service
#service vsftpd restart
Client
Step 3:root@sys5 ~]# lftp u
priya 192.168.0.254
lftp priya@192.168.0.254:~> ls
Login failed
lftp priya@192.168.0.254:/>quit. How to configure FTP File Transfer Protocol server In Linux Red hat Centos

Related post