(Root@www ) #: - y Install VSFTPD
(Root@www ) #: - y Install VSFTPD
2021/03/16
Install Vsftpd to configure FTP Server.
[root@www ~]#
dnf -y install vsftpd
[root@www ~]#
vi /etc/vsftpd/vsftpd.conf
# line 12 : make sure value is [NO] (no anonymous)
anonymous_enable=NO
# line 82,83 : uncomment ( allow ascii mode )
ascii_upload_enable=YES
ascii_download_enable=YES
# line 100,101 : uncomment ( enable chroot )
chroot_local_user=YES
chroot_list_enable=YES
# line 103 : uncomment ( chroot list file )
chroot_list_file=/etc/vsftpd/chroot_list
# line 109 : uncomment
ls_recurse_enable=YES
# line 114 : set YES if listen only IPv4
listen=NO
# line 123 : set NO if not listen IPv6
listen_ipv6=YES
# add to the end
local_root=public_html
# use local time
use_localtime=YES
# turn off for seccomp filter (if cannot login, add this line)
seccomp_sandbox=NO
[root@www ~]#
vi /etc/vsftpd/chroot_list
# add users you allow to move over their home directory
cent
[root@www ~]#
systemctl enable --now vsftpd
[root@www ~]#
setsebool -P ftpd_full_access on
[root@www ~]#
firewall-cmd --add-service=ftp --permanent
success
[root@www ~]#
firewall-cmd --reload
success
[root@www ~]#
dnf --enablerepo=epel -y install pure-ftpd
[root@www ~]#
vi /etc/pure-ftpd/pure-ftpd.conf
# line 77 : change (no Anonymous)
NoAnonymous yes
IPV4Only yes
IPV6Only yes
[root@www ~]#
systemctl enable --now pure-ftpd
[root@www ~]#
setsebool -P ftpd_full_access on
[root@www ~]#
firewall-cmd --add-service=ftp --permanent
success
[root@www ~]#
firewall-cmd --reload
success
[root@www ~]#
dnf --enablerepo=epel -y install proftpd
[root@www ~]#
vi /etc/proftpd.conf
# line 80 : change to your own hostname
ServerName "www.srv.world"
[root@www ~]#
vi /etc/ftpusers
# add users you'd like to prohibit FTP access
test
[root@www ~]#
systemctl enable --now proftpd
[root@www ~]#
firewall-cmd --add-service=ftp --permanent
success
[root@www ~]#
firewall-cmd --reload
success
[root@www ~]#
setsebool -P ftpd_full_access on
[root@dlp ~]#
dnf -y install lftp
[redhat@dlp ~]$
lftp -u cent www.srv.world
# change directory
lftp [email protected]:~> cd public_html
lftp [email protected]:~/public_html> pwd
ftp://[email protected]/%2Fhome/cent/public_html
# exit
lftp [email protected]:~> quit
221 Goodbye.
[1] For example, use FileZilla for FTP Client software. Download FileZilla from the follows.
⇒ https://filezilla-project.org/download.php?type=client
[2] Install FileZilla to your Windows Computer and start it, then following screen is shown.
Input your FTP server [Host], [Username]. [Password], like follows. Next Click [Quick connect].
[3] If settings are OK, it's possible to connect to FTP server like follows.
FTP Server : FTP Client (Windows)
2021/03/16
For how to connect to FTP server from Client computer,
the example follows is on Windows Client.
[1] For example, use FileZilla for FTP Client software. Download FileZilla from the follows.
⇒ https://filezilla-project.org/download.php?type=client
[2] Install FileZilla to your Windows Computer and start it, then following screen is shown.
Input your FTP server [Host], [Username]. [Password], like follows. Next Click [Quick connect].
[3] If settings are OK, it's possible to connect to FTP server like follows.