nautilus 不能设置 ftp active 主动模式

Posted 9 months, 2 weeks ago at 11:32 am. 0 comments

ad 468x60

因为防火墙,ftp 需要 active 模式,而 nautilus 默认是 passive。据说在 KDE 的修改方法如下:

以下为引用内容:

KDE you can get port mode to be the default for Konqueror. by K>Preferences>Internet & Networking>Connection Prefrences and uncheck (x) enable passive mode (PASV).

via ubuntuforums

尝试下面办法失败:

以下为引用内容:

ftp_ext_passive 和 ftp_int_passive

FTP servers can work in passive or active mode. Active mode is when you want to transfer data you have to tell the server the address and port to connect to. Passive mode is when the server provide the address and port and you establish the connection.
With some firewalls active mode does not work as the server cannot connect to your machine (because you are behind a firewall) and the firewall does not re-write the command. In this case you should set ftp_ext_passive to a true value.

Some servers are configured to only work in passive mode. If you have one of these you can force Net::FTP to always transfer in passive mode; when not going via a firewall, by setting ftp_int_passive to a true value.


sudo vim /etc/Net

修改 ftp_ext_passive => 1 或者 ftp_int_passive =>1 都连不上。只能 ftp 命令行,或者使用其它 ftp 客户端(gftp,filezilla)或者用 curlftpfs 挂接 ftp 。这个问题已经被当成 bug 提交了。

相关日志:

ftp 错误信息 Could not retrieve directory listing

Popularity: 7% [?]

Tags: , , , , , ,
ad 468x60

No Replies

Feel free to leave a reply using the form below!


Leave a Reply