Welcome to SSHutdown news. To make SSHutdown work you have to setup 2 things:
SSH access to the computer you want to execute a command on.
If you don't know how to do it, please consult your favorite search engine or read Ubuntu docs. It depends on your OS. Under Windows I have successfully tested SSHutdown using cygwin
On ubuntu you'd have to:
sudo apt-get install openssh-server
and make sure it is accessible from your mobile phone with username/password or the recommended public key authentication.
User privilige to run the given command
You have to authorize the user you connect with to run the shutdown command on your computer.
Under Ubuntu systems simply do:
and append the following line at the end of sudoers file: (verify for your distribution or flavour)
username ALL=NOPASSWD: /sbin/halt, /sbin/shutdown, /sbin/restart, /sbin/poweroff
To make sure it works open a new terminal and type:
sudo halt -w
or a similar comand suitable for your OS that will not actually shutdown the computer. If setup correctly the command executes without password verification.
Congratulations, you can now use SSH shutdown to execute this privileged command.
Public Key Authentication
To use public key authentication you need to provide your private key (e.g.: id_rsa) in ~/.ssh