第一、安装
[root@xxx ~]# yum -y install vsftpd
安装完成后添加用户:
[root@xxx~]# useradd ftpuser
设置密码:[root@xxx~]# passwd ftpuser
Changing password for user ftpuser.
New password:
BAD PASSWORD: it is too simplistic/systematic(忽略不管,再次输入密码)
Retype new password:
passwd: all authentication tokens updated successfully.
[root@xxx~]#
开启防火墙端口;[root@xxx~]# vim /etc/sysconfig/iptables
加入-A INPUT -p tcp -m tcp –dport 22 -j ACCEPT 。 :wq保存退出。
重启防火墙生效:[root@xxx ~]# service iptables restart。
设置开机启动:[root@xxx ~]# chkconfig vsftpd on。
关闭匿名访问:[root@xxx~]# vim /etc/vsftpd/vsftpd.conf 修改anonymous_enable=YES改成NO #不允许匿名用户登陆
重启服务:[root@xxx ~]# service vsftpd restart。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之家整理,本文链接:https://www.bmabk.com/index.php/post/18582.html