环境信息
- Windows 10;
- Serv-U 15.0.1.20;
解决办法
错误信息:
connecting...ftp服务器:192.168.5.157:21
org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:298)
at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:365)
at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:630)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:164)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:184)
at com.util.FtpUtils.initFtpClient(FtpUtils.java:70)
at com.util.FtpSample.main(FtpSample.java:10)
解决: Serv-U管理控制台->域详细信息->增加IP允许访问规则。