Hi, I am getting a zero-length file after transferring using FTP-SSL in explict mode. Also, using -d option instead of -s option does not list any files on the server.
The transfer and listing works fine if I use plain FTP from apache-commons for the same store location. The transfer using FTP-SSL works fine using another FTP client, FileZilla. I am using commons-net 3.3. Command-line: java -jar D:\webapps\NetBeansProjects\lib\commons-net-3.3\commons-net-examples-3.3.jar FTPClientExample -# -b -p false -s <hostname> <user> <password> commons.req.enc commons.req.enc The file commons.req.enc is attached. It is an encrypted file. The ftp command output is also attached. Kindly advise. -- -------------------------------------------------------------------------------------------------------- "Didn't I say to you that if you believed you would see the glory of God?" --------------------------------------------------------------------------------------------------------
220 ftp1pdmz8 NcFTPd Server (licensed copy) ready. AUTH TLS 234 AUTH successful Connected to <hostname> on 21 USER ******* 331 User <username> okay, need password. PASS ******* 230-You are user #85 of 1000 simultaneous users allowed. 230- 230 Restricted user logged in. SYST 215 UNIX Type: L8 Remote system is UNIX Type: L8 TYPE I 200 Type okay. PASV 227 Entering Passive Mode (69,191,229,43,63,21) STOR commons.req.enc 150 Data connection accepted from 69.191.229.45:10913; transfer starting. 226 Transfer completed. NOOP 200 No-op okay. Your session will timeout in 4 minutes and 59 seconds. QUIT 221 Goodbye.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
