503 Bad sequence of commands

Four Stars

503 Bad sequence of commands

I am attempting to connect to FTP and I am receiving the following error message:

 

Exception in component tFTPConnection_1 (FTP)
javax.net.ssl.SSLException: 503 Bad sequence of commands.

 at org.apache.commons.net.ftp.FTPSClient.execPROT(FTPSClient.java:528)
 at configuration.ftp_0_1.FTP.tFTPConnection_1Process(FTP.java:533)
 at configuration.ftp_0_1.FTP.runJobInTOS(FTP.java:2011)
 at configuration.ftp_0_1.FTP.main(FTP.java:1862)

 

The FTP uses SSL, passive connection mode and explicit security mode. The port (21), host, username and password are all correct; using the same settings I can log in through FileZilla. I can also log into SFTP without any issues using the same sequence (I change the FTPConnection component). What am I doing wrong?

Moderator

Re: 503 Bad sequence of commands

Hello,

It indicates the server is unavailable.

Have you tried to set the FTPS option (it is FTP over SSH) on tFTPConnection component?

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: 503 Bad sequence of commands

I tired that. The box is checked (FTPS Support (support tFTPGet temporarily). I took at screenshot of my configuration. As you can see from the screenshot I have to use a keystore. I created one and imported a key given to me by the host of the FTP. That is all that has happened in that regard.
Moderator

Re: 503 Bad sequence of commands

Hello,

Did you still get the 503 bad sequence of commands error?

For creating keystore and truststore, you can check documentation:

https://docs.oracle.com/cd/E19509-01/820-3503/ggfen/

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.