# Running node red on a headless raspberry pi5

**URL:** <https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891>\
**Category:** General\
**Created:** [9 March 2025 22:06 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891 "2025-03-09T22:06:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![invictagunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/invictagunner/32/98006_2.png) [@invictagunner](https://discourse.nodered.org/u/invictagunner)\
**Post date:** [9 March 2025 22:06 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891/1 "2025-03-09T22:06:51Z")

</div>

I have, with help, successfully transferred my NR project from windows to a headless raspberry pi5, but started Node-Red from a putty session on windows. Will node red be stopped if I close the putty session? If so can anyone suggest a scheme to launch via putty but leave node red running when I close putty/windows. Will the flows restart using the latest flows. I have wanted to export the flows (there are a few thing that have needed change from the windows version) but I get the message that it is blocked and the exported file appears on windows as Unconfirmed 959017.crdownload.  
Would be grateful for any advice. Thanks

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [9 March 2025 22:44 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891/2 "2025-03-09T22:44:06Z")

</div>

> [@invictagunner](#):
>
> Will node red be stopped if I close the putty session?

I think it will, yes.

> [@invictagunner](#):
>
> a scheme to launch via putty but leave node red running when I close putty/windows

Can you explain why you want to do this?

The "usual" way with Node-red on a Pi is for it to run 24/7 using a systemd script.  
If you used the Raspberry Pi installation script, you just need to do `sudo systemctl enable nodered` and Node-red will start automatically whenever the Pi starts up.

> [@invictagunner](#):
>
> I have wanted to export the flows but I get the message that it is blocked and the exported file appears on windows as Unconfirmed 959017.crdownload.

What I do to move exported flows from Pi to PC is use the "copy to clipboard" button on the export dialog and then paste into a text editor on my PC (Usually Notepad++)

---

<div class="post-metadata">

**Author:** ![invictagunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/invictagunner/32/98006_2.png) [@invictagunner](https://discourse.nodered.org/u/invictagunner)\
**Post date:** [9 March 2025 23:13 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891/3 "2025-03-09T23:13:42Z")

</div>

Thank you very much for the information. I had forgotten about the start on boot option - it seems to work perfectly - no need to mess about with putty for this.  
Copying to the clip board and notepad is a good idea.  
Thanks very much for your help.

---

<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:** [10 March 2025 09:36 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891/4 "2025-03-10T09:36:10Z")

</div>

If both on same network then of course you can open two browser windows ( one pointing to each device) then just export to clipboard on one to import to the other

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 March 2025 09:42 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891/5 "2025-03-10T09:42:32Z")

</div>

> [@invictagunner](#):
>
> no need to mess about with putty for this.

For future reference, if you really do need to do something like that, have a look at the `screen` app for Linux. It allows you to disconnect your session but leaves the terminal session running as a background task on the device. You can then re-connect to the session when you re-connect via Putty.

BTW, I no longer use Putty (or the better clone "kitty") since Windows now includes both SSH client and server. So I just set up a Windows Terminal setting to directly SSH to the remote device. If you need something with a graphical folder/file list, VS Code with the Microsoft SSH Remote extension does a nice job.

---

<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:** [10 March 2025 09:46 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891/6 "2025-03-10T09:46:23Z")

</div>

( likewise mobaxterm is a really powerful multisession client that handles ssh (and loads of others) and can do drag drop, save sessions, etc)

---

<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:** [24 March 2025 09:46 UTC](https://discourse.nodered.org/t/running-node-red-on-a-headless-raspberry-pi5/95891/7 "2025-03-24T09:46:38Z")

</div>

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