Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Send "Shutdown" per SSH zu entferntem Rechner

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.2k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.2k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

Send "Shutdown" per SSH zu entferntem Rechner

Scheduled Pinned Locked Moved Skripten / Logik
javascriptblockly
4 Posts 3 Posters 1.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wizzardking
    wrote on last edited by
    #1

    Hallo zusammen

    Könnte mir bitte jemand erklären, wie ich es in einem Script (vorzugsweise Blockly) realisieren kann, dass IOBroker per SSH (Mittels SSH Key) sich mit einem entfernten Rechner verbindet und dort einen Shutdown Befehl sendet?

    lg

    1 Reply Last reply
    0
    • JohGreJ Offline
      JohGreJ Offline
      JohGre
      wrote on last edited by
      #2

      Ich hab das so gelöst.

      function shutDownNAS() {
          var SSH = require('simple-ssh');
          var ssh = new SSH({
              host: '10.0.0.xx',
              port: xxxxx,
              user: 'user',
              pass: 'passwaort'
          });
          log('shutDownNAS');
          ssh.exec('echo "user"|sudo -S shutdown -h now').start();   
      }
      

      nuc i5: RaspberryMatic, ioBroker, pi-hole, SQL-Server, OMV-NAS, Influx-DB & Grafana, OpenHab, tasmoadmin

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wizzardking
        wrote on last edited by
        #3

        Danke. Genau das, was ich gesucht habe.
        Ich teste es Heute Abend mal und schaue, ob das so auch per SSH Key funktioniert.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bishop
          wrote on last edited by
          #4

          hab es damals so gemacht wie hier, da ich Probleme hatte mit dem ssh key.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          388

          Online

          32.5k

          Users

          81.7k

          Topics

          1.3m

          Posts
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Home
          • Recent
          • Tags
          • Unread 0
          • Categories
          • Unreplied
          • Popular
          • GitHub
          • Docu
          • Hilfe