linux安装FTP,并使用root登录用户

  1. 查看是否已经安装vsftpd
    rpm -qa | grep vsftpd

     

  2. 安装
    yum install vsftpd

     

  3. 管理vsftpd相关命令
    启动vsftpd: service vsftpd start
    停止vsftpd: service vsftpd stop
    重启vsftpd: service vsftpd restart

     

  4. 开机自启动

    chkconfig vsftpd on

     

  5. 配置防火墙
    查看防火墙状态:service iptables status
    开启防火墙:service iptables start
    关闭防火墙:service iptables stop
    重启防火墙:service iptables restart

     

  6. 使用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用户密码

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章