Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Linux remote runterfahren ...

Empfohlene Antworten

hi ihr Linuxer ...

Ist es möglich von einem Windows Server per Script, Batch oder was auch immer einen Linux Server runterfahren zu lassen ... ?

Wenn ja, könntet ihr mir kurz erklären wie ich das ganze anstellen kann ?

Gruss

Shadow2k

Wenn es völlig automatisch gehen soll ist das etwas umfangreicher.

1) Dein Linux braucht ssh, wobei login as root erlaubt sein sollte

2) du brauchst einen ssh client, z.b. PuTTY[1]

3) du erzeugst dir auf dem Windows einen sshkey ohne password, z.b. mit PuTTYgen[1]

4) den public part des keys packst du wie gewohnt in die authorized_keys auf dem linux

5) du legst auf dem windows ein commandfile an, in dem steht z.b. shutdown -h now

6) du speicherst in putty eine session mit protocol ssh, user root@host und gibst den sshkey dabei an. Die sessuon speicherst du z.b. mit namen "root@host"

7) du schreibst ein batchfile mit folgendem inhalt[2]:


putty.exe -load "root@host" -m commandfile.txt

putty sollte per ssh auf dem host einlogen, ohne passwort wegen dem key, und den inhalt des commandfiles dort ausführen.

Das ganze setzt voraus das du mit ssh key auth ein wenig vertraut bist.

[1] http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

[2] http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter3.html#3.7.3

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.