Skip to main content
nifier
Gold ⭐️
Apr 15, 2025 5:51 PM UTC
Solved

ListSFTP auth failure

Hi

We are using NiFi API to create ListSFTP processor.

When trying to connect to remote host we get below error.

Caused by: net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods

When we update the "Password" manually in the processor it works fine.

We validated that the password value is sent with correct data but for some reason its not getting set using API.

Do we need to do anything extra for setting the password using API,

 

Thanks

 

nifier
nifierAnswer
Gold ⭐️
Apr 16, 2025 9:59 AM UTC

@MattWho Was able to resolve the issue.

The issue was with the request we are sending which was missing the "Password" value.

Sorry for ticket.

3 replies

MattWho
Titanium ⭐️⭐️
Titanium ⭐️⭐️
Apr 15, 2025 7:52 PM UTC

@nifier 

Not much insight I can offer here without you sharing the full nifi-api request being made.

Are you using curl?
How are you passing your user authentication in the rest-api call?  (The exception you shared points at an authentication issue)

Thank you,

Matt

Translate
nifier
nifierAuthor
Gold ⭐️
Apr 16, 2025 3:47 AM UTC

@MattWho We create all our processors using NiFi API.

For ListSFTP we pass remote SFTP user credential in our REST POST API

process-groups/{id}/processors

Looks like "Password" property which we pass in the POST request is not getting set correctly.

Thanks

 

Translate
nifier
nifierAuthorAnswer
Gold ⭐️
Apr 16, 2025 9:59 AM UTC

@MattWho Was able to resolve the issue.

The issue was with the request we are sending which was missing the "Password" value.

Sorry for ticket.

Translate