我正在尝试连接到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上运行了一个FTP脚本,它正在失败。下面是脚本:
/usr/bin/ftp -v -i -n my.ftp.server << cmd
user ftpuser password
binary
ls
<some other commands here>
quit cmd
它返回一个错误:
421 Service not available, remote server has closed connection
Not connected.
奇怪的是,如果我在命令行/usr/bin/ftp my.ftp.server中输入了这个命令,它会询问用户名
我想问一下linux中的ftp连接,如何使用终端检查linux中的ftp匿名连接?我使用while循环读取vsftpd.conf文件,就像这样
while read line
do
if [ Anonymous_enable=YES ];
then echo " Accept connection"
elif [ Anonymous_enable=NO ];
then echo "Not Accept"
fi
done<vsftpd.conf
我的安卓FTPserver应用程序运行在我的安卓手机下的捆绑模式。我从笔记本电脑连接到我的手机网络,并试图通过FTP连接到手机上,以访问少量文件。我编写了一个python代码,它使用ftp连接传输文件,但是我无法执行简单的连接。
我一直在犯这个错误
在窗口:
server.gaierror: [Errno 11004] getadderinfo failed
在linux中:
socket.gaierror: [Errno -2] Name or service not known
我找了那么多地方,但始终没有找到合适的解决办法。我唯一能找到的就是有人建议检查防火墙。我检查了防火墙设置和所有