Translated message

A translation of this page exists in English.

FTP 会话失败并显示 '421 Service not available' 错误。

Solution In Progress - Updated -

Issue

  • 任何虚拟用户都无法使用 RHEL5.4 提供的 vsftpd 软件包通过 ftp 登录,登录失败并显示以下错误:
  • 将 Red Hat Enterprise Linux 5 中的 vsftpd 软件包更新至 vsftpd-2.0.5-16.el5 会导致多个 FTP 客户端中断

例如:

$ /usr/bin/ftp 192.168.0.1
Connected to 192.168.0.1 (192.168.0.1).
220 (vsFTPd 2.0.5)
Name (192.168.0.1:root): ftptest
331 Please specify the password.
Password:
421 Service not available, remote server has closed connection
Login failed.
  • 如果使用 strace 跟踪,则不会出现这个问题。

例如:

# strace -p $pid_of_vsftpd

只要 vsftpd 进程从 strace 分离,问题就会再现。

Environment

  • Red Hat Enterprise Linux 5.4
  • vsftpd-2.0.5-16.el5 或更高版本

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content