[
https://issues.apache.org/jira/browse/NIFI-7243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17104144#comment-17104144
]
Raúl commented on NIFI-7243:
----------------------------
Hello [~thenatog],
- With Strict host Key Checking = false it connects perfectly.
- With true it gives the following error: could not verify ssh-ed25519, as is
normal because I don't have it in the known_hosts file.
--------------------------------------------
I already have the sftp server traces:
I am attaching the sftp service log data provided by the operating system
2020-05-07T12:15:28.245067+02:00 WWBLUE00....... sshd[42104]: Accepted
keyboard-interactive/pam for ftpvgp from 172.18.0.... port 58584 ssh2
2020-05-07T12:15:28.245067+02:00 WWBLUE00....... sshd[42104]: Accepted
keyboard-interactive/pam for ftpvgp from 172.18.0.... port 58584 ssh2
2020-05-07T15:22:14.712079+02:00 WWBLUE00....... sshd[88598]: Accepted
keyboard-interactive/pam for ftpvgp from 172.18.0.... port 58606 ssh2
2020-05-07T15:22:14.712079+02:00 WWBLUE00....... sshd[88598]: Accepted
keyboard-interactive/pam for ftpvgp from 172.18.0.... port 58606 ssh2
2020-05-07T17:22:50.868095+02:00 WWBLUE00....... sshd[117259]: Accepted
keyboard-interactive/pam for ftpvgp from 172.18.0.... port 59047 ssh2
2020-05-07T17:22:50.868095+02:00 WWBLUE00....... sshd[117259]: Accepted
keyboard-interactive/pam for ftpvgp from 172.18.0.... port 59047 ssh2
Performing a check, I have seen ssh check errors continuously occur:
2020-05-07T10:48:49.304540+02:00 WWBLUE00....... sshd[20978]: error: Received
disconnect from 172.18.15.... port 57460:9: Could not verify `ssh-ed25519` host
key with fingerprint `64:a4:d5:ca:a5:c1:08:24:3e:3c:79:fb:..:..:..:..` for
`10.251.34.187` on port 22 [preauth]
2020-05-07T10:48:49.304820+02:00 WWBLUE....... sshd[20978]: Disconnected from
172.18.15.... port 57460 [preauth]
> SFTP Processors - Exhausted available authentication methods
> ------------------------------------------------------------
>
> Key: NIFI-7243
> URL: https://issues.apache.org/jira/browse/NIFI-7243
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.10.0, 1.11.0, 1.11.1, 1.11.3
> Environment: PRO
> Reporter: Raúl
> Assignee: Nathan Gough
> Priority: Critical
> Labels: SFTP, listsftp
> Attachments: Screen Shot 2020-05-07 at 5.28.29 PM.png
>
>
> In version 1.8 this works correctly. In superiors no.
>
> Any of the processors: ListSFTP, FetchSFTP, GetSFTP, PutSFTP when connecting
> to an sftp shows the error:
> 2020-03-10 15:12:51,596 ERROR [Timer-Driven Process Thread-3]
> o.a.nifi.processors.standard.ListSFTP
> ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] Failed to perform listing
> on remote host due to Exhausted available authentication methods:
> net.schmizz.sshj.userauth.UserAuthException: Exhausted available
> authentication methods
> net.schmizz.sshj.userauth.UserAuthException: Exhausted available
> authentication methods
> at net.schmizz.sshj.SSHClient.auth(SSHClient.java:230)
>
> These tests that I commented have been made from nifi, both in windows and
> linux environment and fails in both.
> 1 - Strict Host Key Checking: false
> 2 - Strict Host Key Checking: true
> Host Key File: C:\Users\usuario\.ssh\known_hosts --> (ssh-rsa,
> ssh-dss and ecdsa-sha2-nistp256)
>
> From the machines, both in windows and in linux, if an sftp is made from the
> command line it connects without problems. But with Nifi he fails to connect.
>
> Any idea about how can I resolve this error?
>
> Thank you in advance,
> -------------------------------------------- log
> -------------------------------------------------
> 2020-03-10 15:12:51,596 ERROR [Timer-Driven Process Thread-3]
> o.a.nifi.processors.standard.ListSFTP
> ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] Failed to perform listing
> on remote host due to Exhausted available authentication methods:
> net.schmizz.sshj.userauth.UserAuthException: Exhausted available
> authentication methods2020-03-10 15:12:51,596 ERROR [Timer-Driven Process
> Thread-3] o.a.nifi.processors.standard.ListSFTP
> ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] Failed to perform listing
> on remote host due to Exhausted available authentication methods:
> net.schmizz.sshj.userauth.UserAuthException: Exhausted available
> authentication methodsnet.schmizz.sshj.userauth.UserAuthException: Exhausted
> available authentication methods at
> net.schmizz.sshj.SSHClient.auth(SSHClient.java:230) at
> org.apache.nifi.processors.standard.util.SFTPTransfer.getSFTPClient(SFTPTransfer.java:606)
> at
> org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:233)
> at
> org.apache.nifi.processors.standard.util.SFTPTransfer.getListing(SFTPTransfer.java:196)
> at
> org.apache.nifi.processors.standard.ListFileTransfer.performListing(ListFileTransfer.java:106)
> at
> org.apache.nifi.processors.standard.ListSFTP.performListing(ListSFTP.java:146)
> at
> org.apache.nifi.processor.util.list.AbstractListProcessor.listByTrackingTimestamps(AbstractListProcessor.java:472)
> at
> org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:414)
> at
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
> at
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176)
> at
> org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
> at
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
> at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110) at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)2020-03-10 15:12:51,601 DEBUG
> [Timer-Driven Process Thread-3] o.a.nifi.processors.standard.ListSFTP
> ListSFTP[id=af72555e-0170-1000-c80d-7e992c9de544] has chosen to yield its
> resources; will not be scheduled to run again for 1000 milliseconds2020-03-10
> 15:12:51,603 TRACE [Timer-Driven Process Thread-3]
> o.a.n.c.r.StandardProcessSession StandardProcessSession[id=0] checkpointed,
> but no events were performed by this ProcessSession
--
This message was sent by Atlassian Jira
(v8.3.4#803005)