# 实验环境 #
server主机:
westos_lue
172.25.254.20
selinux关闭
火墙开启
dnf安装设定完成
vim /etc/sysconfig/selinux
systemctl start firewalld 火墙开启
vim /etc/yum.repos.d/westos.repo
client主机:
westos_linux
172.25.254.10
selinux关闭
dnf安装设定完成
安装lftp
ftp协议文本浏览器
# 1.ftp介绍 #
ftp:file transfer proto
互联阿中最老牌的文件传输协议
# 2.vsftpd安装及启用 #
dnf install vsftpd -y
关闭selinux
systemctl enable --now firewalld
systemctl enable --now vsftpd
firewall-cmd --permanent --add-source=172.25.254.10 --zone=trusted
systemctl restart firewalld
vim /etc/vsftpd/vsftpd.conf
12 anonymous_enable=YES 启动匿名用户的访问功能
systemctl restart vsftpd
测试安装发布:
firefox ftp://ip
lftp ip
此访问方式必须能列出资源才算访问成功
在使用完成后请输入exit推出lftp
vim /etc/vsftpd/vsftpd.conf
测试:
# 3.vsftpd基本信息 #
服务名称:
vsftpd.service
配置目录:
/etc/vsftpd
主配置文件:
/etc/vsftpd/vsftpd.conf
默认发布目录:
/var/ftp
报错信息:
550 程序本身拒绝
553 文件系统权限限制
500 权限过大
530 认证失败
# 4.匿名用户访问控制 #
lftp 172.25.254.20 当访问ftp服