phillipsnick / ubuntu-power
PHP script to SSH into Ubuntu and power down
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/phillipsnick/ubuntu-power
Requires
- php: >=5.3.3
- phpseclib/phpseclib: 0.3.*@dev
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-11-04 11:12:42 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!