vsftpd 错误列出目录
我在 amazon ec2 上使用 fedora 实例安装了 vsftpd,它是最新版本,但我收到错误: 在 CuteFTP 中:
COMMAND:> PASV 227 Entering Passive Mode (192,168,10,46,14,20)
COMMAND:> LIST
ERROR:> Can’t connect to remote server. Socket error = #10065.
ERROR:> PASV failed, trying PORT.
在 Filezilla 中:
Command: PASV Response: 227 Entering Passive Mode (192,168,10,46,14,20)
Command: LIST Error: Connection timed out
Error: Failed to retrieve directory listing.
尝试通过 Shell 连接并显示目录列表。
I installed vsftpd on amazon ec2 with fedora instance and it is the latest version but I am getting the error:
In CuteFTP:
COMMAND:> PASV 227 Entering Passive Mode (192,168,10,46,14,20)
COMMAND:> LIST
ERROR:> Can’t connect to remote server. Socket error = #10065.
ERROR:> PASV failed, trying PORT.
In Filezilla:
Command: PASV Response: 227 Entering Passive Mode (192,168,10,46,14,20)
Command: LIST Error: Connection timed out
Error: Failed to retrieve directory listing.
Trying to Connect thro' Shell and showing me list of directories.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
刚刚遇到了同样的问题...这通常只影响使用被动模式(这很常见)的 GUI ftp 客户端。例如,当使用标准 ftp 命令行工具时,我能够成功登录并将文件上传到我的 ftp 服务器。
更正步骤是:
将以下设置添加到 /etc/vsftpd.conf 文件中:
pasv_enable=YES
pasv_min_port=64000
pasv_max_port=64321
port_enable=YES
还可以根据您的情况将以下配置块之一添加到 /etc/vsftpd.conf 文件中(无论哪种方式,都需要解析为公共可访问的 IP):
a:
-OR-
b :
注意:pasv 端口范围应该在防火墙外部可见,NAT
参考以获取更多信息:
Just had this same exact issue... this typically only affects GUI ftp clients that use a passive mode (which is pretty common). For instance, when using the standard ftp command line tool, I was able to successfully login and upload files to my ftp server.
The steps to correct are:
Add the following settings to your /etc/vsftpd.conf file:
pasv_enable=YES
pasv_min_port=64000
pasv_max_port=64321
port_enable=YES
Also add one of the following config chunks to your /etc/vsftpd.conf file, based on your situation (either way, this needs to resolve to a public accessible IP):
a:
-OR-
b:
Note: pasv port range should be visible outside from the firewall, NAT
References for more info:
只需将传输模式更改为活动即可修复亚马逊 ec2 上的
错误:无法检索目录列表
。这篇文章解释了如何使用 filezilla 轻松完成此操作:
https://nabtron.com/error-while-connecting-to-amazon-ec2-via-ftp-solution/
error: failed to retrieve directory listing
on amazon ec2 can be fixed by simply changing transfer mode to active.this post explains how to get it done easily using filezilla:
https://nabtron.com/error-while-connecting-to-amazon-ec2-via-ftp-solution/
使用版本 vsftpd-3.0.2-1.el5.x86_64.rpm 对我来说帮助了以下设置:
感谢longda!
With version vsftpd-3.0.2-1.el5.x86_64.rpm for me helped the following settings:
Thanks to the longda!
这对我有用;
以下是
/etc/vsftpd.conf
中的配置保存并重新启动服务
在安全组中打开以下端口
从 FileZilla FTP 客户端连接时,您可能会收到以下错误;
为了解决这个问题;
系统的外部 IP 地址”
活动模式 按确定。
尝试再次连接到您的 FTP 站点。
This work for me;
Below is configuration in
/etc/vsftpd.conf
SAVE and Restart the service
Open below ports in security group
You may get below error while connecting from FileZilla FTP client;
To resolve this;
system for the external IP address"
Active Mode Press OK.
Try connecting to your FTP site once again.
看看这个帖子:
http://www.gosquared.com/liquidicity/archives/936
Look at this thread:
http://www.gosquared.com/liquidicity/archives/936
如果可能的话,您希望使用被动模式。正如我在 Bucho 链接的文章中所说,您只需定义 PASV 模式的端口范围并在 EC2 安全组中打开该范围
You want to use passive mode if possible. As I said in the article Bucho linked to, you just have to define a port range for PASV mode and open that range in your EC2 security group
如果 vsftpd.conf 中有如下配置:
尝试打开防火墙:
if some configuration like below in vsftpd.conf:
try to open firewall: