Settings

Theme

Show HN: Running server scripts from smartphone via SSH

c100k.eu

4 points by pmdfgy 13 days ago · 3 comments · 1 min read

Reader

I've added Remote Runbooks to RebootX, a mobile app for managing cloud and on-prem infrastructure, available on iOS and Android (freemium).

The idea is simple: when PagerDuty wakes you up, many incidents boil down to executing the same sequence of SSH commands or operational steps. Instead of opening a laptop, you can execute a predefined runbook directly from your phone.

Very usefyl when you're on the go.

The scripts are retrieved from the server at `/usr/local/sbin/rebootx/runbooks`, also via SSH. If a script is prefixed with `__` (2 underscores), it's considered dangerous and the app warns you about it and ask for confirmation before executing it.

Some will argue that with the perfect infra, you don't have to do all of this. By experience, none of us have the perfect infra so SSH-ing into the server (e.g VPS) is often required.

Happy to hear about your feedback or ideas of improvement.

KomoD 13 days ago

> The idea is simple: when PagerDuty wakes you up, many incidents boil down to executing the same sequence of SSH commands or operational steps. Instead of opening a laptop, you can execute a predefined runbook directly from your phone.

Why don't you automate those steps completely then? Then you don't have to click anything, need this app, or even wake up :/

Lord_Zero 13 days ago

Does this need a special agent on my server?

  • pmdfgyOP 13 days ago

    No, nothing to install on your server. Everything is done via SSH from your phone and the server, there is nothing in-between. When you first SSH into the server, the key is stored in your keychain and reused for these operations. This way, you don't have to enter it everytime, but it's still safely stored.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection