- 查看是否已经安装vsftpd
rpm -qa | grep vsftpd
- 安装
yum install vsftpd
- 管理vsftpd相关命令
启动vsftpd: service vsftpd start 停止vsftpd: service vsftpd stop 重启vsftpd: service vsftpd restart
-
开机自启动
chkconfig vsftpd on
- 配置防火墙
查看防火墙状态:service iptables status 开启防火墙:service iptables start 关闭防火墙:service iptables stop 重启防火墙:service iptables restart
- 使用root远程登录
修改/etc/vsftpd/vsftpd.con配置文件
#anonymous_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
修改/etc/vsftpd/ftpusers和user_list文件,将root用户注释掉。
然后就可以用FTP客户端登录了,端口为21,用户名为root,密码即root用户密码