FTP client received network error javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
问题 I am trying to connect to FTP that requires 'Explicit FTP over TLS' and upload a file. I am trying to do it from my local machine which uses Java version 8 and commons net FTP version 3.6 Below is the code which I use try { FTPSClient ftpClient = new FTPSClient(); ftpClient.setDataTimeout(300); ftpClient.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out))); ftpClient.setAuthValue("TLS"); ftpClient.connect(server, port); int reply = ftpClient.getReplyCode(); if