Solved
SFTP CLI works but PutSFTP fails
SFTP CLI connects to the server and works fine.
But, from PutSFTP it fails with below error, this is the only logs we are getting from PutSFTP
net.schmizz.sshj.transport.TransportException: Server closed connection during identification exchange
Also, both CLI and NiFi are running on same server

