Restart SSH service (or even reboot board) from Cloud9 IDE?

Twice in 6 months, my BBB has locked me out of an SSH connection (standard Angstrom distribution, the only additions are lighttpd and PHP, using a static IP). The standard
webserver on port 80 and a lighttpd server on port 6980 still work as does the Cloud9 IDE. The only way to get it back is a hard reset.

This normally wouldn’t be an issue but I’m about to put a couple of these in a not-easily-accessible place.

Is there a way to restart SSH or even reboot the board from within the Cloud9 IDE? I could connect a “kill” circuit to one of the I/O and power cycle the board from Cloud9 but that’s a bit messy.

I need to reboot my c9.io too. Nothing?

chmod +s /sbin/reboot
Now all users can reboot, as well your webserver...
Note: this is _very_ insecure!

Thanks!