While connecting with a jump server i wrote following code.
session = jsch.getSession(JumpServerUserName, JumpServerIP, 22);
session.setPortForwardingL(localPort, JumpServerIP, 22);
System.out.println("The session could not be established to " + JumpServerUserName + "@" + JumpServerIP+new Timestamp(System.currentTimeMillis()));
The code worked fine but i was getting following messages.
Kerberos username [Username]:
Kerberos password for [Username]:
The messages didnt interfere with the functionality of the code but required user to click enter twice on the screen which was cumbersome.
Adding the below line was my solution.