![无法使用 vsftpd 更改目录或传输文件](https://linux22.com/image/1586411/%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%20vsftpd%20%E6%9B%B4%E6%94%B9%E7%9B%AE%E5%BD%95%E6%88%96%E4%BC%A0%E8%BE%93%E6%96%87%E4%BB%B6.png)
我在装有 Gentoo Linux 的计算机上安装了 vsftpd。我从 localhost 连接到它。网络或权限似乎没有问题,因为我可以登录 ftp 服务器并更改当前目录。但是,当我尝试使用“ls”、“get”或“put”时,ftp 客户端会显示错误 421 服务不可用。以下是示例:
╭─ag@AprilGrimoire ~
╰─$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 Welcome to blah FTP service.
Name (127.0.0.1:ag):
530 Please login with USER and PASS.
530 Please login with USER and PASS.
SSL not available
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd OI
250 Directory successfully changed.
ftp> cd 2019
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
500 OOPS: 421 Service not available, remote server has closed connection
ftp> %