# Node-Red on Odroid C4 stop when closing SSH connection

**URL:** <https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933>\
**Category:** General\
**Created:** [9 December 2022 18:25 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933 "2022-12-09T18:25:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincentducate](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vincentducate](https://discourse.nodered.org/u/vincentducate)\
**Post date:** [9 December 2022 18:25 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/1 "2022-12-09T18:25:48Z")

</div>

Hi,

Why does Node-Red stops working on my Odroid C4 when i'm closing the ssh connection. I'm new to this so I have no clue where to look for a solution.

Regards,  
Vincent

---

<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:** [9 December 2022 18:42 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/2 "2022-12-09T18:42:01Z")

</div>

How are you running Node-RED.... if you are just calling `node-red` commandd and watching it in the console then yes - when you shut the console (close ssh) then it will close the program.

If you run it as a service using `node-red-start` - then it should stay running.

---

<div class="post-metadata">

**Author:** ![vincentducate](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vincentducate](https://discourse.nodered.org/u/vincentducate)\
**Post date:** [9 December 2022 18:57 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/3 "2022-12-09T18:57:16Z")

</div>

Hi,

I've tried that and I'm getting an error : command not found.  
What am I doing wrong?

Regards,  
Vincent

---

<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:** [9 December 2022 18:59 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/4 "2022-12-09T18:59:00Z")

</div>

How did you install Node-RED ?

---

<div class="post-metadata">

**Author:** ![vincentducate](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vincentducate](https://discourse.nodered.org/u/vincentducate)\
**Post date:** [9 December 2022 19:05 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/5 "2022-12-09T19:05:16Z")

</div>

I followed some instructions on a webpage. I can't find it back tough.  
First installed nodejs and then node-red using ssh

---

<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:** [9 December 2022 19:08 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/6 "2022-12-09T19:08:08Z")

</div>

If you are using a Debian variant operating system then you should use the recommended script that is aimed at api users but works on Ubuntu, Debian etc.otherwise you have to install the service files manually.

---

<div class="post-metadata">

**Author:** ![vincentducate](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vincentducate](https://discourse.nodered.org/u/vincentducate)\
**Post date:** [9 December 2022 19:11 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/7 "2022-12-09T19:11:54Z")

</div>

The operating system is Ubuntu 20.04.4. Can I redo the installation? And which script should I use. I'm not at all familiar with Linux

---

<div class="post-metadata">

**Author:** ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)\
**Post date:** [9 December 2022 19:22 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/8 "2022-12-09T19:22:02Z")

</div>

The Node-RED official link [is here](https://nodered.org/docs/getting-started/raspberrypi).

But if you could find the original install script/instructions, you can remove the original install and start from scratch with no fear of conflicts.

---

<div class="post-metadata">

**Author:** ![vincentducate](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vincentducate](https://discourse.nodered.org/u/vincentducate)\
**Post date:** [9 December 2022 19:56 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/9 "2022-12-09T19:56:11Z")

</div>

It works. Thanks a lot

---

<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:** [23 December 2022 19:57 UTC](https://discourse.nodered.org/t/node-red-on-odroid-c4-stop-when-closing-ssh-connection/71933/10 "2022-12-23T19:57:06Z")

</div>

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