dev-master
9999999-dev https://github.com/phillipsnick/ubuntu-powerPHP script to SSH into Ubuntu and power down
MIT
The Requires
- php >=5.3.3
- phpunit/phpunit 3.7.*
- phpseclib/phpseclib 0.3.*@dev
Wallogit.com
2017 © Pedro Peláez
PHP script to SSH into Ubuntu and power down
Simple script to SSH into an Ubuntu host and execute a shutdown command., (*1)
Add the following to your composer.json file, (*2)
{
"require": {
"phillipsnick/ubuntu-power": "dev-master"
}
}
Then run composer install, (*3)
git submodule add https://github.com/phillipsnick/ubuntu-power.git git submodule add https://github.com/phpseclib/phpseclib.git
Or see example inside Examples/SingleHost.php, (*4)
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)
PHP script to SSH into Ubuntu and power down
MIT