我正在尝试连接到Linux上的FTP服务器,当我执行ftp.listFiles(remote);时出现以下异常
SYST 215 Linux Exception in thread "AWT-EventQueue-0"
org.apache.commons.net.ftp.parser.ParserInitializationException:
Unknown parser type: Linux at
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEnt
将我的Linux服务器更新为Ubuntu19.10和Debian的最新版本,它们都指向我运行镜像存储库的主Linux服务器,并允许通过FTP与其通信,现在我正在接收消息
The method 'ftp' is unsupported and disabled by default.
Consider switching to http(s).
Set Dir::Bin::Methods::ftp to "ftp" to enable it again.
在无法获取ftp://之后。如何通过FTP重新启用系统更新的检索?
我正在尝试从ftp服务器手动接收文件。到目前为止,我可以连接到服务器并检查它的220响应,但随后我想发送用户名,wireshark显示正在发送一些随机字节。首先是我的代码:
struct request
{
int reply; /* TRUE = request reply from server */
int msgLen; /* length of message text */
char message[REQUEST_MSG_SIZE]; /*