login about faq

Hello,

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.

debug1: Authentications that can continue: gssapi-with-mic,publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: /home/demnlm_root/demnlmmg/.ssh/id_rsa debug1: Authentications that can continue: gssapi-with-mic,publickey,keyboard-interactive debug1: Offering public key: /home/demnlm_root/demnlmmg/.ssh/id_dsa debug1: Authentications that can continue: gssapi-with-mic,publickey,keyboard-interactive debug1: Next authentication method: keyboard-interactive

Do I need to change the ftp-id setting to make it work with the existing Java code. Can you please help me to solve this failure.

Thanks, Praveen Chidugulla

asked Mar 12 '14 at 09:05

chidugulla's gravatar image

chidugulla
1111


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?

link

answered Mar 12 '14 at 16:27

Joe%20-%20Tectia%20Support's gravatar image

Joe - Tectia Support ♦♦
55215

Hello Joe,

Ftp-id is the account used to connect destination server.

The portion of java code used to connect is:

private void makeConnection()throws Exception{ log.info("Making Connection to SFTP server.");

sftpSession = jsch.getSession(fsmanager.getFtpuser().trim(),fsmanager.getFtpserver().trim(),Integer.parseInt(fsmanager.getFtpport().trim()));

sftpSession.setPassword(fsmanager.getFtppass().trim());
java.util.Properties config = new java.util.Properties();
config.put("StrictHostKeyChecking", "no");
sftpSession.setConfig(config);
sftpSession.connect();
channel = sftpSession.openChannel("sftp");
channel.connect();
channelSftp = (ChannelSftp)channel; }

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)

Thanks, Praveen Chidugulla

link

answered Mar 13 '14 at 09:08

chidugulla's gravatar image

chidugulla
1111

What client side API's are you using for connection? at first glance it doesn't look like they are Tectia's API's.

link

answered Mar 14 '14 at 19:30

Joe%20-%20Tectia%20Support's gravatar image

Joe - Tectia Support ♦♦
55215

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: Mar 12 '14 at 09:05

Seen: 2,482 times

Last updated: Mar 14 '14 at 19:30

Related questions

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.