How can I enter sftp password after connect sftp on a remote host via ssh

Hello,

I want to develop a node that will connect sftp on a remote host via ssh and then enter the sftp password on the prompt. Is there any way to auto fill the password prompt?

Best regards

maybe look at lftp client that can connect to sftp servers via the command line - eg GitHub - atinux/node-ftps: FTP, FTPS and SFTP client for node.js, mainly a lftp wrapper.

Though there is already this - node-red-contrib-lftp (node) - Node-RED