phillipsnick / ubuntu-power
PHP script to SSH into Ubuntu and power down
dev-master
2013-10-10 21:06 UTC
Requires
- php: >=5.3.3
- phpseclib/phpseclib: 0.3.*@dev
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-01-28 07:24:03 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!