# How to copy file from shared folder to shared folder using node-red flow

**URL:** <https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959>\
**Category:** General\
**Created:** [21 October 2019 12:41 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959 "2019-10-21T12:41:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpt2007](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lpt2007](https://discourse.nodered.org/u/lpt2007)\
**Post date:** [21 October 2019 12:41 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/1 "2019-10-21T12:41:17Z")

</div>

Hi,

It is possible to copy file from one shared folder to another shared folder using node-red flow? How?

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [21 October 2019 12:49 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/2 "2019-10-21T12:49:50Z")

</div>

Windows or Linux or Mac?

---

<div class="post-metadata">

**Author:** ![lpt2007](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lpt2007](https://discourse.nodered.org/u/lpt2007)\
**Post date:** [21 October 2019 12:55 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/3 "2019-10-21T12:55:26Z")

</div>

Node-RED running on linux and I wanna copy file from windows file share to linux file share.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 October 2019 14:18 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/4 "2019-10-21T14:18:24Z")

</div>

If you can't find a better way you can always use an exec node to do the copy.

---

<div class="post-metadata">

**Author:** ![lpt2007](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lpt2007](https://discourse.nodered.org/u/lpt2007)\
**Post date:** [21 October 2019 17:51 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/5 "2019-10-21T17:51:05Z")

</div>

How to connect to remote host from exec node? I can ssh to remote server ok. When I run command from exec node I get error:

```auto
Pseudo-terminal will not be allocated because stdin is not a terminal.
Host key verification failed.

```

---

<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:** [21 October 2019 17:57 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/6 "2019-10-21T17:57:23Z")

</div>

If you are copying files shouldn’t you try scp rather than ssh ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 October 2019 20:13 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/7 "2019-10-21T20:13:04Z")

</div>

I thought you indicated that the folders were already shared. If so then you can use the normal system copy command to copy from one share to the other.

---

<div class="post-metadata">

**Author:** ![lpt2007](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lpt2007](https://discourse.nodered.org/u/lpt2007)\
**Post date:** [22 October 2019 07:38 UTC](https://discourse.nodered.org/t/how-to-copy-file-from-shared-folder-to-shared-folder-using-node-red-flow/16959/8 "2019-10-22T07:38:00Z")

</div>

I try [bigssh](https://flows.nodered.org/node/node-red-contrib-bigssh) node. And I think should do the work 🕶

thx all for help 🍻
