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
![FFFTP](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp.gif)
Click Connect.
![接続](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp2-400x237.gif)
Click Connect.WP-Coder title=”section_end”]
![接続](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp_3-400x236.gif)
Click New Host.
![新規ホスト](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp4-400x231.gif)
Decide and enter an easy-to-understand name in “Host setting name”.
![ホストの設定名](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp5.gif)
“hostname( 192.168.1.3)”Enter the.
![ホスト名](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp6.gif)
“username( webmaster)”Enter the.
![ユーザー名](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp7.gif)
Enter “Password”.
![パスワード](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp8.gif)
Click OK.
![「OK」をクリック](https://rcg.jp/wordpress/wp-content/uploads/2019/07/ffftp9.gif)
コメント