phillipsnick/ubuntu-power

PHP script to SSH into Ubuntu and power down

dev-master 2013-10-10 21:06 UTC

This package is not auto-updated.

Last update: 2024-09-10 05:16:47 UTC


README

Introduction

Simple script to SSH into an Ubuntu host and execute a shutdown command.

Installation

Setting up Ubuntu

Using Composer (recommended)

Add the following to your composer.json file

{
    "require": {
        "phillipsnick/ubuntu-power": "dev-master"
    }
}

Then run composer install

Using Git submodules (untested)

git submodule add https://github.com/phillipsnick/ubuntu-power.git 
git submodule add https://github.com/phpseclib/phpseclib.git

Usage


Or see example inside Examples/SingleHost.php

Notes

This is probably not the most secure way of achieving this task. As personally this is only run internally I don't deem this a big issue.

Feel free to help improve this!