Skip to main content
simon_jespersen
Gold ⭐️
March 23, 2017
Solved

Configuring ListSFTP Authentication with an SSH Private Key in Apache NiFi

I am working on a flow getting files from a sftp site, i am not shure what i am during wrong configuring the listSftp processor

I this flow ( just startet ) and keep getting this error

13992-listsftp1.png

My configuration in listSftp is current

13993-listsftp2.png

I have validated that the file exits on the nifi server in my directory, even tried to chmod 777 so everybody can do everything on it. ( i did this just for debug purpose )

13994-listsftp3.png

I have this sence that i am during something basiclly wrong.

I have keyfile, hostname, username, a password (key phrase i thing ) there are 100 chars

I thing it is strange that nifi cannot validate that the file exits in /home/230960adm/ on the nifi server

Any suggestions ?

MattWho
MattWhoAnswer
Titanium ⭐️⭐️⭐️
March 23, 2017
@Simon Jespersen

The "Host Key File" property is used to specify the file containing your trusted hosts (commonly named known_hosts and found by default in the .ssh directory). It is not the key you are using to connect with. This property works in conjunction with the "Strict Host Key Checking" property when it is set to "true"

You are getting a key does not exist because this property ins un related to "Private Key Path" so NiFi is looking in its base default directory for this file.

I believe what you are trying to do has nothing to do with host key checking.

You want to configure the "Private Key Path" as the full path to your private key including the key name itself.

Thank you,

Matt

5 replies

MattWho
Titanium ⭐️⭐️⭐️
MattWhoAnswer
Titanium ⭐️⭐️⭐️
March 23, 2017
@Simon Jespersen

The "Host Key File" property is used to specify the file containing your trusted hosts (commonly named known_hosts and found by default in the .ssh directory). It is not the key you are using to connect with. This property works in conjunction with the "Strict Host Key Checking" property when it is set to "true"

You are getting a key does not exist because this property ins un related to "Private Key Path" so NiFi is looking in its base default directory for this file.

I believe what you are trying to do has nothing to do with host key checking.

You want to configure the "Private Key Path" as the full path to your private key including the key name itself.

Thank you,

Matt

Translate
simon_jespersen
Gold ⭐️
March 29, 2017

Thank you for your reply, i found out that i also have a firewall issue, so i cannot test it before this is solved.

Translate