# Recommendations on pulling a file from SSH session?

**URL:** <https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193>\
**Category:** General\
**Created:** [16 July 2022 16:42 UTC](https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193 "2022-07-16T16:42:42Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [19 July 2022 23:46 UTC](https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193/21 "2022-07-19T23:46:46Z")

</div>

But no one ever got fired for buying Cisco !!

Craig

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [20 July 2022 01:35 UTC](https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193/22 "2022-07-20T01:35:05Z")

</div>

OMG... LOL... Or buying Micro$oft, or IBM... or.... [cough]

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [20 July 2022 03:02 UTC](https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193/23 "2022-07-20T03:02:13Z")

</div>

> [@Nodi.Rubrum](#):
>
> Well, just validated, rsync is not available, but scp of course is, so the die is cast. 🙂 What was it my dad used to say... "The obvious answer, is quite often, the right one."

Yep well SCP it is

The easiest way would be to have a timed (cron) bash script on the pi that runs at whatever frequency you want and then the NR script monitors the directory with the file watcher node and processes once it turns up.

Craig

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [20 July 2022 04:53 UTC](https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193/24 "2022-07-20T04:53:58Z")

</div>

Yes, I have done the same thing without NR years ago, used event drive powershell, to watch a directory, and then once a file shows up, the powershell script responded to the registered event. I have also used incron.d, on linux, to replicate changed isc-dhcp-server configuration files, so when the master server (source files) was changed, the downstream dhcp servers received updates.

---

<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:** [18 September 2022 04:54 UTC](https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193/25 "2022-09-18T04:54:26Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/recommendations-on-pulling-a-file-from-ssh-session/65193.md?page=1)
