You have a Kerberos/GSSAPI authentication set as the preferred, yet you do not seem to actually use/want it. As you do not specify any username or password for the Kerberos prompts.
The solution is to remove the Kerberos/GSSAPI (gssapi-with-mic
) from the list of preferred authentication methods:
session.setConfig(
"PreferredAuthentications",
"publickey,keyboard-interactive,password");
Reference: SFTP connection through Java asking for weird authentication.