[
https://issues.apache.org/jira/browse/NIFI-1956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15316500#comment-15316500
]
ASF GitHub Bot commented on NIFI-1956:
--------------------------------------
Github user olegz commented on the issue:
https://github.com/apache/nifi/pull/487
@pvillard31gave it some time and it looks like with regard to testing this
one will be one of those exceptions. In other words there is no easy way to
reliably write a test case to validate that this property is set since it is
set in private _getChannel(..)_ method. And even if I use reflection to invoke
it, it would still require the running SSH server which may not be the case on
other build environments.
Now, I don't want to say that it's completely impossible, but at the moment
I am willing to say it is not worth the effort. Let m know what you think.
> Add "keyboard-interactive" option to SFTPTransfer
> -------------------------------------------------
>
> Key: NIFI-1956
> URL: https://issues.apache.org/jira/browse/NIFI-1956
> Project: Apache NiFi
> Issue Type: Improvement
> Affects Versions: 1.0.0, 0.7.0
> Reporter: Oleg Zhurakousky
> Assignee: Oleg Zhurakousky
> Fix For: 1.0.0, 0.7.0
>
>
> With RFC-4256 some SSH servers may no longer support or enable "password" as
> a valid authentication option in favor of "keyboard-interactive".
> This results in
> {code}
> Exception in thread "main" com.jcraft.jsch.JSchException: Auth fail
> {code}
> And even though the spec discusses the authentication mechanism where user
> will be prompted for a password, JSch provides an authentication provider
> which handles such prompt behind the scenes as long as user sets password in
> a session.
> Belo code shows how to reproduce the issue (at least in osx):
> {code}
> public static void main(String[] args) throws Exception {
> JSch jsch = new JSch();
> Session session = jsch.getSession("<user>", "localhost", 22);
> session.setPassword("<password>");
> Properties properties = new Properties();
> properties.setProperty("StrictHostKeyChecking", "no");
> //properties.setProperty("PreferredAuthentications",
> "publickey,password,keyboard-interactive");
> properties.setProperty("PreferredAuthentications",
> "publickey,password");
> session.setConfig(properties);
> session.connect();
> System.out.println("connected");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)