# Shutdown an Enigma-Receiver via Node Red

**URL:** <https://discourse.nodered.org/t/shutdown-an-enigma-receiver-via-node-red/17827>\
**Category:** General\
**Created:** [12 November 2019 09:39 UTC](https://discourse.nodered.org/t/shutdown-an-enigma-receiver-via-node-red/17827 "2019-11-12T09:39:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smarty](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Smarty](https://discourse.nodered.org/u/Smarty)\
**Post date:** [12 November 2019 09:39 UTC](https://discourse.nodered.org/t/shutdown-an-enigma-receiver-via-node-red/17827/1 "2019-11-12T09:39:05Z")

</div>

I want to shut down my Dreambox via Node Red. The suhtdown command shutdown -h now via command works wonderfully. But I'm currently not clear how I can make remotely via Node Red. Is there a node I can do that with?

---

<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:** [12 November 2019 10:05 UTC](https://discourse.nodered.org/t/shutdown-an-enigma-receiver-via-node-red/17827/2 "2019-11-12T10:05:49Z")

</div>

I don't know the device, presumably node-red is running on a different machine. Can you ssh into the dreambox?

---

<div class="post-metadata">

**Author:** ![Smarty](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Smarty](https://discourse.nodered.org/u/Smarty)\
**Post date:** [12 November 2019 10:12 UTC](https://discourse.nodered.org/t/shutdown-an-enigma-receiver-via-node-red/17827/3 "2019-11-12T10:12:39Z")

</div>

Yes, ssh is able into the dreambox. It's actually a Linux kernel.

---

<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:** [12 November 2019 10:27 UTC](https://discourse.nodered.org/t/shutdown-an-enigma-receiver-via-node-red/17827/4 "2019-11-12T10:27:37Z")

</div>

In that case you should be able to use an exec node to run the shutdown command, something like  
`ssh user@dreambox 'sudo shutdown -h now'`  
Then in the device you may need to tell it to allow that command without password entry. On a Debian based system that is by using `sudo visudo` and adding  
`user ALL=(ALL) NOPASSWD: /sbin/shutdown`  
where user is the user referenced in the ssh command.

---

<div class="post-metadata">

**Author:** ![Smarty](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Smarty](https://discourse.nodered.org/u/Smarty)\
**Post date:** [14 November 2019 08:14 UTC](https://discourse.nodered.org/t/shutdown-an-enigma-receiver-via-node-red/17827/5 "2019-11-14T08:14:20Z")

</div>

Thanks, Colin for your replay!  
For all the people who is interesseted in this case. Unforftunally, my enigma2 Receiver doens't care about ssh and it ssems to me it is not possible to install it into my image.  
However, there is another way how to shutdown it via Node-Red.  
Use exec node `wget -q -O - <ip-adress>/web/powerstate?newstate=1`
