Skip to main content
nisaar
Gold ⭐️
May 7, 2026 6:57 PM UTC
Question

SFTP CLI works but PutSFTP fails

We have VM server on which we have NiFi installed within the container.

When we try to connect using sftp command from within the docker it connects fine.

docker exec -it nifi bash

However when we try from NiFi PutSFTP processor, it fails with below error

Routing to failure since unable to transfer FlowFile[filename=TGT_TEST28042026.csv] to remote host sftp.AAAAA.com:
net. schmizz. sshj. transport. TransportException: Connection reset
- Caused by: java.net.SocketException: Connection

How and where do I get more details logs ?

Also, is sftp command and NiFi PutSFTP works differently ?

This is similar to my previous  post

https://community.cloudera.com/t5/Support-Questions/SFTP-CLI-works-but-PutSFTP-fails/td-p/413903

But this time vendor has whitelisted the IP and we are able to connect from within docker on which Nifi is running.

Thanks

Gautam P

2 replies

vafs
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
May 12, 2026 10:06 PM UTC

Hello @nisaar, 

sftp CLI and PutSFTP can internally work differently. 

Have you check nifi-app.log from the NiFi nodes to review the error? 
If so, can you share here the message to take a look. 

Translate
MattWho
Titanium ⭐️⭐️
Titanium ⭐️⭐️
May 13, 2026 12:03 PM UTC

@nisaar 

I agree with @vafs  that sharing the completed ERROR and stack trace is always gong to be most helpful in your community questions. 

Those full stack traces will have classes like "net.schmizz.sshj.transport" that you could try putting in to DEBUG within the NiFi logback to see what additional logging that class (not a NiFi library, but used by NiFi) may provide. 

Matt

Translate