I am facing failure while connecting to the tectia ftp-id on a remote server. But able to connect to other remote servers with the same Java code (it passes user-id, hostname, port no and password defined in the configuration file).

Admin team said the ftp-id is configured with keyboard-interactive.

When I connect to the remote server from my Unix server I get below message.

I'm not sure what you mean by ftp-id, is this the user account your using to connect to the destination server? Is the java code written to use standard FTP, or SFTP?

Also if the account is setup to use keyboard interactive, it looks like we would need to see the logs that happen after "Next authentication method: keyboard-interactive". Are you getting prompted to enter a password?

We are getting prompt to enter a password when we connect from linux command line. It fails while connecting from Java application with below exception:

com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:460)
at com.jcraft.jsch.Session.connect(Session.java:154)
at state.ftp.ftpstates.SftpManager.makeConnection(SftpManager.java:53)
at state.ftp.ftpstates.SftpManager.setChannelSftp(SftpManager.java:66)
at state.ftp.ftpstates.SftpManager.getConnection(SftpManager.java:61)
at state.ftp.ftpstates.SftpManager.getReplyString(SftpManager.java:94)
at state.ftp.ftpstates.FTPConnectState.makeConnection(FTPConnectState.java:105)
at state.ftp.ftpstates.FTPConnectState.execute(FTPConnectState.java:40)
at state.ftp.ftpstates.FTPStateManager.process(FTPStateManager.java:69)
at com.delaware.eai.mqclient.io.target.FTPTarget.putTransactionMessages(FTPTarget.java:195)
at com.delaware.eai.mqclient.Controller.run(Controller.java:416)