Install vsftpd.
Install vsftpd.
[root@www ~]# dnf -y install vsftpd
Configure vsftpd.
[root@www ~]# vi /etc/vsftpd/vsftpd.conf
Line 12: Prohibit anonymous login.
anonymous_enable= NO
Lines 82, 83: Remove the “#” at the beginning of the line to uncomment it and allow transfer in ascii mode.
ascii_upload_enable=YES
ascii_download_enable=YES
Lines 100, 101: Remove the “#” at the beginning of the line to uncomment and enable chroot.
chroot_local_user=YES
chroot_list_enable=YES
Line 103: Remove the “#” at the beginning of the line, uncomment it, and specify the list file.
chroot_list_file=/etc/vsftpd/chroot_list
Line 109: Remove the “#” at the beginning of the line to uncomment it and enable directory transfer.
ls_recurse_enable=YES
Line 114: Change IPv4 to enabled.
listen=YES
Line 123: Change IPv6 to disabled.
listen_ipv6=NO
Append the local time specification to the last line.
use_localtime=YES
Add users who are allowed to move up.
[root@www ~]# vi /etc/vsftpd/chroot_list
Add your username.
webmaster
Allow writing “/var/www/html”.
[root@www ~]# chmod 0777 /var/www/html
start up.
[root@www ~]# systemctl start vsftpd
Set autostart.
[root@www ~]# systemctl enable vsftpd
FTP client settings.
Check the document root owner.
Check document root owner
Download and install “FFFTP” and start it.
FFFTP
FFFTP
Click Connect.
Click Connect.WP-Coder title=”section_end”]
Click New Host.
Decide and enter an easy-to-understand name in “Host setting name”.
“hostname( 192.168.1.3)”Enter the.
“username( webmaster)”Enter the.
Enter “Password”.
Click OK.
コメント