Good afternoon,

I would try this command from command line:

ssh -vvv -i <path to rsa file> user@server

Example:

ssh -vvv -i /some/path/.ssh/id_rsa nifi@10.10.10.10

If that works then I would double check the "private key path" property of
your GetSFTP it should point to the fully qualified file to the private key
path.

If it does not work then the -vvv option should give you more error.



On Tue, Apr 4, 2017 at 9:47 AM James Keeney <nextves...@gmail.com> wrote:

> I am using SFTP to transfer files between two servers. I have tried
> multiple configurations to try to get the authentication to work but i keep
> getting the Auth Fail error. I'm able to go onto the Nifi server sftp over
> to the destination server but I cannot get it to work in Nifi. I'm just not
> sure how to debug this so I was hoping someone could help. Here are the
> setting I'm using (I've replaced all the important details with
> placeholders):
>
> Hostname: <Hostname. I've tried both IP and hostname without luck>
> Port: 22 <I've confirmed this by connecting directly from server to server)
> username: <username>
> Host key File: <location on the server of the public key file>
>
> The error I am receiving is below. Any help would be greatly appreciated.
>
> Thanks.
>
> Jim K
>
>
>
>
> 2017-03-29 13:59:51,705 ERROR [Timer-Driven Process Thread-1]
> o.a.nifi.processors.standard.PutSFTP
> PutSFTP[id=fcdd2eb4-015a-1000-80c5-7406e6fca4c5] Unable to transfer
> StandardFlowFileRecord[uuid=a3569afa-7c80-4cec-9239-2424172e30d1,claim=StandardContentClaim
> [resourceClaim=StandardResourceClaim[id=1490795991637-151,
> container=default, section=151], offset=0,
> length=2917388],offset=0,name=tulips_248_042214.jpg,size=2917388] to remote
> host <servername> due to
> org.apache.nifi.processor.exception.ProcessException: IOException thrown
> from PutSFTP[id=fcdd2eb4-015a-1000-80c5-7406e6fca4c5]: java.io.IOException:
> Failed to obtain connection to remote host due to
> com.jcraft.jsch.JSchException: Auth fail: java.io.IOException: Failed to
> obtain connection to remote host due to com.jcraft.jsch.JSchException: Auth
> fail; routing to failure: java.io.IOException: Failed to obtain connection
> to remote host due to com.jcraft.jsch.JSchException: Auth fail
> 2017-03-29 13:59:51,706 ERROR [Timer-Driven Process Thread-1]
> o.a.nifi.processors.standard.PutSFTP
> java.io.IOException: Failed to obtain connection to remote host due to
> com.jcraft.jsch.JSchException: Auth fail
>         at
> org.apache.nifi.processors.standard.util.SFTPTransfer.getChannel(SFTPTransfer.java:447)
> ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.processors.standard.util.SFTPTransfer.put(SFTPTransfer.java:529)
> ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.processors.standard.PutFileTransfer$1.process(PutFileTransfer.java:135)
> ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2082)
> ~[na:na]
>         at
> org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2053)
> ~[na:na]
>         at
> org.apache.nifi.processors.standard.PutFileTransfer.onTrigger(PutFileTransfer.java:127)
> ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
> [nifi-api-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099)
> [nifi-framework-core-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
> [nifi-framework-core-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
> [nifi-framework-core-1.1.0.jar:1.1.0]
>         at
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
> [nifi-framework-core-1.1.0.jar:1.1.0]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [na:1.8.0_121]
>         at
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> [na:1.8.0_121]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> [na:1.8.0_121]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> [na:1.8.0_121]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [na:1.8.0_121]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [na:1.8.0_121]
>

Reply via email to