【服务器运维】ftp没法衔接登录linux的解决方法
2019-11-15网站运维搜奇网101°c
A+ A-1、起首装置vsftpd
敕令:
yum -y install vsftpd
以后开启效劳:
service vsftpd start
2、封闭防火墙
1) 重启后见效
开启:
chkconfig iptables on
封闭:
chkconfig iptables off
2) 立即见效,重启后失效
开启:
service iptables start
封闭:
service iptables stop
3、默许情况下vsftp是不允许root用户登录的,能够经由过程修正限定来处理这个题目
起首找到vsftp的设置目次 [root@localhost vsftpd]# pwd /etc/vsftpd [root@localhost vsftpd]# ls chroot_list ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh [root@localhost vsftpd]# 修正 [root@localhost vsftpd]# cat ftpusers # Users that are not allowed to login via ftp #root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody 修正 [root@localhost vsftpd]# cat user_list # vsftpd userlist # If userlist_deny=NO, only allow users in this file # If userlist_deny=YES (default), never allow users in this file, and # do not even prompt for a password. # Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers # for users that are denied. #root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody 上面这个两个就是默许情况下vsftp不允许运用的账号列表,讲文件中root删除,或许前面加个#号 重启一下vsftpd 效劳 即可
4、将/etc/selinux/config
中的enforcing
形式改成disabled
, 然后重启
引荐教程:Linux教程
以上就是ftp没法衔接登录linux的处理方法的细致内容,更多请关注ki4网别的相干文章!