Command line utility for running remote commands over ssh.
Install
$ npm install -g sshout
Usage
Adds the sshout command when installed globally. Takes everything after sshout and runs that command from a hosted folder on the server.
Features
Secure through ssh (well duh).
require()'able so you can call it from node.
Since the client is very dumb and the server has all the logic, there is no need to keep clients up to date.
Scripts can be written in any scripting language.
CLI
Lets create an example environment where we can execute remote commands over ssh. We need the following:
A folder with some scripts, accessible over ssh.
A configuration file for sshout defining user, host, port (optional) and scripts (optional).
Lets assume the scripts folder on the server is located in the user $HOME folder and called myscripts. Lets also assume the scripts are hosted on the server example.com and that the user is ubuntu. We start by creating a configuration file ~/.sshoutrc, which can be either in json or ini format.