Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.6k views
in Java FTP by (160 points)
Trying to connect via FTPS. See log below.

DEBUG [SSLFTPClient] 20 Aug 2012 16:39:40.774 : Turned server validation off
DEBUG [SSLFTPClient] 20 Aug 2012 16:39:40.788 : Created explicit FTPS client.
DEBUG [SSLFTPClient] 20 Aug 2012 16:39:40.788 : Connecting to sftp.continuingjustice.org:21
DEBUG [StreamSocketFactory] 20 Aug 2012 16:39:40.828 : Connecting to sftp.continuingjustice.org:21 via standard socket
DEBUG [FTPControlSocket] 20 Aug 2012 16:39:41.144 : 220-Welcome To Rumpus!
DEBUG [FTPControlSocket] 20 Aug 2012 16:39:41.145 : 220 Service ready for new user
DEBUG [SSLFTPControlSocket] 20 Aug 2012 16:39:41.147 : DISABLE_CONTROL_SSL_CLOSURE=false
DEBUG [SSLFTPControlSocket] 20 Aug 2012 16:39:41.147 : DISABLE_CONTROL_WAIT_ON_CLOSE=false
DEBUG [SSLFTPControlSocket] 20 Aug 2012 16:39:41.148 : ALLOW_BASIC_CONSTRAINTS_IN_NON_CA=false
DEBUG [FTPControlSocket] 20 Aug 2012 16:39:41.148 : ---> AUTH SSL
DEBUG [FTPControlSocket] 20 Aug 2012 16:39:41.231 : 234 AUTH command OK
DEBUG [SSLFTPControlSocket] 20 Aug 2012 16:39:41.231 : Starting SSL handshake on control socket
INFO [cryptix] 20 Aug 2012 16:39:41.465 : GLOBAL_TRACE=false
INFO [cryptix] 20 Aug 2012 16:39:41.466 : GLOBAL_DEBUG=false
INFO [cryptix] 20 Aug 2012 16:39:41.489 : GLOBAL_DEBUG_SLOW=false
DEBUG [SSLHandshake] 20 Aug 2012 16:39:42.103 : 3 certificates supplied.0 verified certificates.
DEBUG [SSLHandshake] 20 Aug 2012 16:39:42.103 : isVerified=false, acceptUnverified=true
DEBUG [IJCE_Properties] 20 Aug 2012 16:39:42.190 : Successfully loaded the IJCE properties file
DEBUG [SSLFTPControlSocket] 20 Aug 2012 16:39:42.402 : SSL handshake on control socket complete
DEBUG [FTPControlSocket] 20 Aug 2012 16:39:42.403 : ---> PBSZ 0
DEBUG [FTPControlSocket] 20 Aug 2012 16:39:42.487 : 200 PBSZ=0
DEBUG [FTPControlSocket] 20 Aug 2012 16:39:42.488 : ---> PROT P

com.enterprisedt.net.ftp.FTPException: 530 USER and PASS required first
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.prot(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)
at com.prosc.ftpeek.GenericFTPModel.connect(GenericFTPModel.java:182)
at com.prosc.ftpeek.FTPSModelTest.connect(FTPSModelTest.java:59)
at com.prosc.ftpeek.FTPSModelTest.testConnect(FTPSModelTest.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)

DEBUG [FTPControlSocket] 20 Aug 2012 16:39:42.598 : 530 USER and PASS required first
INFO [FTPControlSocket] 20 Aug 2012 16:39:42.599 : Expected reply codes = [200]

2 Answers

0 votes
by (160 points)
The FTP server is Rumpus v 7.2.3 from Maxum (http://www.maxum.com/Rumpus).

It is running on a Mac mini (Late 2006) using Mac OS X Server 10.5.8
0 votes
by (162k points)
The message is "USER and PASS required first" in response to PROT.

So it looks to me as though it requires AUTH, then USER/PASS, and then PSBZ0 and PROT P, e.g.

ftp.setConfigFlags(SSLFTPClient.ConfigFlags.START_WITH_CLEAR_DATA_CHANNELS);
ftp.setValidateServer(false);
ftp.connect();
ftp.auth(SSLFTPClient.AUTH_SSL);
ftp.login(username, password);
ftp.pbsz(0);
ftp.prot(SSLFTPClient.PROT_PRIVATE);

Categories

...