ホームページ  >  記事  >  運用・保守  >  Linux への FTP 接続とログインに失敗する場合の解決策

Linux への FTP 接続とログインに失敗する場合の解決策

王林
王林オリジナル
2019-11-14 11:19:354262ブラウズ

Linux への FTP 接続とログインに失敗する場合の解決策

1. まず vsftpd

コマンド:

yum -y install vsftpd

をインストールしてから、サービスを開始します:

service vsftpd start

2. ファイアウォールをオフにします

1) 再起動後に有効になります

Open:

chkconfig iptables on

Close:

chkconfig iptables off

2) すぐに有効、再起動後は無効

Open:

service iptables start

Close:

service iptables stop

3. デフォルトでは、vsftp は許可しません。この問題は、制限

首先找到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 モードを変更します。 無効にし、 から再起動します

推奨チュートリアル:Linux チュートリアル

以上がLinux への FTP 接続とログインに失敗する場合の解決策の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。