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

**URL:** https://discourse.nodered.org/t/how-can-i-enter-sftp-password-after-connect-sftp-on-a-remote-host-via-ssh/98168
**Category:** General
**Tags:** function-node, exec
**Created:** [16 July 2025 20:45 UTC](https://discourse.nodered.org/t/how-can-i-enter-sftp-password-after-connect-sftp-on-a-remote-host-via-ssh/98168 "2025-07-16T20:45:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![okircali](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/okircali/32/79791_2.png) [@okircali](https://discourse.nodered.org/u/okircali)
#### Post date: [16 July 2025 20:45 UTC](https://discourse.nodered.org/t/how-can-i-enter-sftp-password-after-connect-sftp-on-a-remote-host-via-ssh/98168/1 "2025-07-16T20:45:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [17 July 2025 16:14 UTC](https://discourse.nodered.org/t/how-can-i-enter-sftp-password-after-connect-sftp-on-a-remote-host-via-ssh/98168/2 "2025-07-17T16:14:00Z")

</div>

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.](https://github.com/Atinux/node-ftps)

Though there is already this - [node-red-contrib-lftp (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-lftp)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [15 October 2025 16:14 UTC](https://discourse.nodered.org/t/how-can-i-enter-sftp-password-after-connect-sftp-on-a-remote-host-via-ssh/98168/3 "2025-10-15T16:14:41Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
