|
|
|
giladgaron
|
Hello,
I'm trying to use commons-net ftps to access a remote FTP via TLS. I can connect and login to the server, but when I'm trying to send a LIST command, I get a 550 error. Code: ftpsClient = new FTPSClient(); ftpsClient.connect("IP", "2100"); ftpsClient.login("USER_NAME, "PASSWORD"); ftpsClient.list(); Any ideas? Thanks. |
||||||||||||||||
|
Steve Cole-6
|
Verify USER_NAME has permission to get a list from the default directory.
----- Original Message ----- From: "giladgaron" <[hidden email]> To: <[hidden email]> Sent: Thursday, October 01, 2009 5:25 AM Subject: Trying to get List via FTPS results in a 550 code. > > Hello, > > I'm trying to use commons-net ftps to access a remote FTP via TLS. > I can connect and login to the server, but when I'm trying to send a LIST > command, I get a 550 error. > > Code: > ftpsClient = new FTPSClient(); > ftpsClient.connect("IP", "2100"); > ftpsClient.login("USER_NAME, "PASSWORD"); > ftpsClient.list(); > > Any ideas? > Thanks. > -- > View this message in context: > Sent from the Commons - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
giladgaron
|
All the user settings are in order, I've double checked it.
I can connect, get a list and upload files to the remote FTPS site via a desktop FTP client and another java library called EDT FTP Pro. I just can't seem to get it to work with the commons-net library.
|
||||
|
Steve Cole-6
|
A 550 is file not available, not found or not accessible. Are you able to
get a directory list from USER_NAME's home directory using the other FTPS clients? Try changing the working directory, to one that's worked with the other clients, before the list command. ----- Original Message ----- From: "giladgaron" <[hidden email]> To: <[hidden email]> Sent: Thursday, October 01, 2009 5:46 PM Subject: Re: Trying to get List via FTPS results in a 550 code. > > All the user settings are in order, I've double checked it. > I can connect, get a list and upload files to the remote FTPS site via a > desktop FTP client and another java library called EDT FTP Pro. > I just can't seem to get it to work with the commons-net library. > > > > Steve Cole-6 wrote: > > > > Verify USER_NAME has permission to get a list from the default > > > > ----- Original Message ----- > > From: "giladgaron" <[hidden email]> > > To: <[hidden email]> > > Sent: Thursday, October 01, 2009 5:25 AM > > Subject: Trying to get List via FTPS results in a 550 code. > > > > > >> > >> Hello, > >> > >> I'm trying to use commons-net ftps to access a remote FTP via TLS. > >> I can connect and login to the server, but when I'm trying to send a > >> command, I get a 550 error. > >> > >> Code: > >> ftpsClient = new FTPSClient(); > >> ftpsClient.connect("IP", "2100"); > >> ftpsClient.login("USER_NAME, "PASSWORD"); > >> ftpsClient.list(); > >> > >> Any ideas? > >> Thanks. > >> -- > >> View this message in context: > > > >> Sent from the Commons - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden email] > >> For additional commands, e-mail: [hidden email] > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > > > -- > View this message in context: > Sent from the Commons - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
giladgaron
|
I have only access to one folder, which is my home folder.
I've checked with PWD (that works) to verify that I'm in the right folder, I even CWD to that folder to verify again that I'm in the correct folder. I'm in the correct folder and I get 550 when send the LIST command. in the EDT FTP Pro library it works.
|
||||||||||||||||
|
Steve Cole-6
|
Are you executing these commands after logging in? If not, try that.
ftpsClient.execPBSZ(0); ftpsClient.execPROT("P"); ----- Original Message ----- From: "giladgaron" <[hidden email]> To: <[hidden email]> Sent: Friday, October 02, 2009 4:37 PM Subject: Re: Trying to get List via FTPS results in a 550 code. > > I have only access to one folder, which is my home folder. > I've checked with PWD (that works) to verify that I'm in the right folder, I > even CWD to that folder to verify again that I'm in the correct folder. > I'm in the correct folder and I get 550 when send the LIST command. in the > EDT FTP Pro library it works. > > > Steve Cole-6 wrote: > > > > A 550 is file not available, not found or not accessible. Are you able to > > get a directory list from USER_NAME's home directory using the other FTPS > > clients? Try changing the working directory, to one that's worked with the > > other clients, before the list command. > > > > ----- Original Message ----- > > From: "giladgaron" <[hidden email]> > > To: <[hidden email]> > > Sent: Thursday, October 01, 2009 5:46 PM > > Subject: Re: Trying to get List via FTPS results in a 550 code. > > > > > >> > >> All the user settings are in order, I've double checked it. > >> I can connect, get a list and upload files to the remote FTPS site via > >> desktop FTP client and another java library called EDT FTP Pro. > >> I just can't seem to get it to work with the commons-net library. > >> > >> > >> > >> Steve Cole-6 wrote: > >> > > >> > Verify USER_NAME has permission to get a list from the default > > directory. > >> > > >> > ----- Original Message ----- > >> > From: "giladgaron" <[hidden email]> > >> > To: <[hidden email]> > >> > Sent: Thursday, October 01, 2009 5:25 AM > >> > Subject: Trying to get List via FTPS results in a 550 code. > >> > > >> > > >> >> > >> >> Hello, > >> >> > >> >> I'm trying to use commons-net ftps to access a remote FTP via TLS. > >> >> I can connect and login to the server, but when I'm trying to send a > > LIST > >> >> command, I get a 550 error. > >> >> > >> >> Code: > >> >> ftpsClient = new FTPSClient(); > >> >> ftpsClient.connect("IP", "2100"); > >> >> ftpsClient.login("USER_NAME, "PASSWORD"); > >> >> ftpsClient.list(); > >> >> > >> >> Any ideas? > >> >> Thanks. > >> >> -- > >> >> View this message in context: > >> > > > > >> >> Sent from the Commons - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: [hidden email] > >> >> For additional commands, e-mail: [hidden email] > >> >> > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [hidden email] > >> > For additional commands, e-mail: [hidden email] > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > > > >> Sent from the Commons - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden email] > >> For additional commands, e-mail: [hidden email] > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > > > -- > View this message in context: > Sent from the Commons - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
giladgaron
|
Tried that before, no effect.
|
||||||||||||||||
|
Steve Cole-6
|
Can you provide the output from the command listener, like this...
USER username 331 Password required for username PASS password 230 Logged on PBSZ 0 200 PBSZ=0 PROT P 200 Protection level set to P SYST 215 UNIX emulated by FileZilla PASV 227 Entering Passive Mode (90,0,0,126,4,196) LIST 150 Connection accepted 226 Transfer OK QUIT 221 Goodbye ----- Original Message ----- From: "giladgaron" <[hidden email]> To: <[hidden email]> Sent: Saturday, October 03, 2009 4:46 AM Subject: Re: Trying to get List via FTPS results in a 550 code. > > Tried that before, no effect. > > > Steve Cole-6 wrote: > > > > Are you executing these commands after logging in? If not, try that. > > > > ftpsClient.execPBSZ(0); > > ftpsClient.execPROT("P"); > > > > > > ----- Original Message ----- > > From: "giladgaron" <[hidden email]> > > To: <[hidden email]> > > Sent: Friday, October 02, 2009 4:37 PM > > Subject: Re: Trying to get List via FTPS results in a 550 code. > > > > > >> > >> I have only access to one folder, which is my home folder. > >> I've checked with PWD (that works) to verify that I'm in the right > >> folder, > > I > >> even CWD to that folder to verify again that I'm in the correct folder. > >> I'm in the correct folder and I get 550 when send the LIST command. in > >> the > >> EDT FTP Pro library it works. > >> > >> > >> Steve Cole-6 wrote: > >> > > >> > A 550 is file not available, not found or not accessible. Are you > > to > >> > get a directory list from USER_NAME's home directory using the other > > FTPS > >> > clients? Try changing the working directory, to one that's worked with > > the > >> > other clients, before the list command. > >> > > >> > ----- Original Message ----- > >> > From: "giladgaron" <[hidden email]> > >> > To: <[hidden email]> > >> > Sent: Thursday, October 01, 2009 5:46 PM > >> > Subject: Re: Trying to get List via FTPS results in a 550 code. > >> > > >> > > >> >> > >> >> All the user settings are in order, I've double checked it. > >> >> I can connect, get a list and upload files to the remote FTPS site > > a > >> >> desktop FTP client and another java library called EDT FTP Pro. > >> >> I just can't seem to get it to work with the commons-net library. > >> >> > >> >> > >> >> > >> >> Steve Cole-6 wrote: > >> >> > > >> >> > Verify USER_NAME has permission to get a list from the default > >> > directory. > >> >> > > >> >> > ----- Original Message ----- > >> >> > From: "giladgaron" <[hidden email]> > >> >> > To: <[hidden email]> > >> >> > Sent: Thursday, October 01, 2009 5:25 AM > >> >> > Subject: Trying to get List via FTPS results in a 550 code. > >> >> > > >> >> > > >> >> >> > >> >> >> Hello, > >> >> >> > >> >> >> I'm trying to use commons-net ftps to access a remote FTP via > >> >> >> I can connect and login to the server, but when I'm trying to send > >> a > >> > LIST > >> >> >> command, I get a 550 error. > >> >> >> > >> >> >> Code: > >> >> >> ftpsClient = new FTPSClient(); > >> >> >> ftpsClient.connect("IP", "2100"); > >> >> >> ftpsClient.login("USER_NAME, "PASSWORD"); > >> >> >> ftpsClient.list(); > >> >> >> > >> >> >> Any ideas? > >> >> >> Thanks. > >> >> >> -- > >> >> >> View this message in context: > >> >> > > >> > > > > >> >> >> Sent from the Commons - User mailing list archive at Nabble.com. > >> >> >> > >> >> >> > >> >> > >>> --------------------------------------------------------------------- > >> >> >> To unsubscribe, e-mail: [hidden email] > >> >> >> For additional commands, e-mail: [hidden email] > >> >> >> > >> >> > > >> >> > > >> >> > > >> --------------------------------------------------------------------- > >> >> > To unsubscribe, e-mail: [hidden email] > >> >> > For additional commands, e-mail: [hidden email] > >> >> > > >> >> > > >> >> > > >> >> > >> >> -- > >> >> View this message in context: > >> > > > > >> >> Sent from the Commons - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: [hidden email] > >> >> For additional commands, e-mail: [hidden email] > >> >> > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [hidden email] > >> > For additional commands, e-mail: [hidden email] > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > > > >> Sent from the Commons - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden email] > >> For additional commands, e-mail: [hidden email] > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > > > -- > View this message in context: > Sent from the Commons - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
giladgaron
|
Here you go:
USER ##### 331 Enter password PASS ##### 230 User logged in PBSZ 0 200 PBSZ=0 PROT P 200 PRIVATE data channel protection level set SYST 215 UNIX LIST 550 Command LIST failed If I send the PASV command, the client hangs, and after a few minutes a get an exception java.net.SocketException: Connection reset Here's the output with PASV mode: USER ##### 331 Enter password PASS ##### 230 User logged in PBSZ 0 200 PBSZ=0 PROT P 200 PRIVATE data channel protection level set SYST 215 UNIX PASV 227 Entering Passive Mode (###,###,###,###,39,22). LIST //client hangs and after a few minutes throws a java.net.SocketException: Connection reset
|
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |