2017 © Pedro Peláez
 

library ubuntu-power

PHP script to SSH into Ubuntu and power down

image

phillipsnick/ubuntu-power

PHP script to SSH into Ubuntu and power down

  • Thursday, October 10, 2013
  • by phillipsnick
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Ubuntu Power

Introduction

Simple script to SSH into an Ubuntu host and execute a shutdown command., (*1)

Installation

Setting up Ubuntu

Add the following to your composer.json file, (*2)

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

Then run composer install, (*3)

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, (*4)

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., (*5)

Feel free to help improve this!, (*6)

The Versions

10/10 2013

dev-master

9999999-dev https://github.com/phillipsnick/ubuntu-power

PHP script to SSH into Ubuntu and power down

  Sources   Download

MIT

The Requires