NIFI-1956 added 'keyboard-interactive' option to SFTPTransfer

This closes #487.
This commit is contained in:
Oleg Zhurakousky 2016-06-01 16:11:43 -04:00 committed by Pierre Villard
parent 55d32ae610
commit cee2426df6
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ public class SFTPTransfer implements FileTransfer {
final Properties properties = new Properties(); final Properties properties = new Properties();
properties.setProperty("StrictHostKeyChecking", ctx.getProperty(STRICT_HOST_KEY_CHECKING).asBoolean() ? "yes" : "no"); properties.setProperty("StrictHostKeyChecking", ctx.getProperty(STRICT_HOST_KEY_CHECKING).asBoolean() ? "yes" : "no");
properties.setProperty("PreferredAuthentications", "publickey,password"); properties.setProperty("PreferredAuthentications", "publickey,password,keyboard-interactive");
final PropertyValue compressionValue = ctx.getProperty(FileTransfer.USE_COMPRESSION); final PropertyValue compressionValue = ctx.getProperty(FileTransfer.USE_COMPRESSION);
if (compressionValue != null && "true".equalsIgnoreCase(compressionValue.getValue())) { if (compressionValue != null && "true".equalsIgnoreCase(compressionValue.getValue())) {