Proftpd
Proftpd 伺服器:伺服器不支持非 ASCII 字元
我已將我的 FTP(執行 proftpd)伺服器從 Ubuntu 18.04 移動到 Ubuntu 20.04 伺服器,現在連接時出現問題。在連接日誌中有一行說:
"Status: Server does not support non-ASCII characters."
並且無法下載所有包含非 ASCII 字元的文件和文件夾。
我可以通過將我的 FTP 客戶端(例如 FileZilla)設置為明確使用 UTF-8 來修復此客戶端站點,但對於連接到 FTP 的其他人來說,問題仍然存在。
proftpd-basic/focal,now 1.3.6c-2 amd64 [installed,automatic] proftpd-doc/focal,now 1.3.6c-2 all [installed,automatic] proftpd-mod-mysql/focal,now 1.3.6c-2 amd64 [installed]
有誰知道導致此錯誤的原因可能是什麼以及如何解決?
好的,我已經找到了解決這個問題的方法!
MultilineRFC2228 off
下面是關於 mod_core 的文件的一部分:
問:當我使用 FileZilla 連接到 ProFTPD 時,我看到 FileZilla 記錄以下警告:
狀態:伺服器不支持非 ASCII 字元。即使我使用了 –enable-nls 建構選項,並且我的 ProFTPD 支持 UTF8。怎麼了?
答:FileZilla 解析 FEAT 響應來判斷 FTP 伺服器是否支持 UTF-8 編碼。但是,FEAT 響應的格式可能會混淆 FileZilla 的檢測程式碼。例如,如果您的 proftpd.conf 使用:
多線RFC2228
這會導致 ProFTPD 的 FEAT 響應格式與 FileZilla 預期的不同,從而導致出現上述“不支持非 ASCII 字元”消息。
解決方案是使用:
MultilineRFC2228 關閉
在您的 proftpd.conf 中(或完全刪除該指令)。