Skyrun is a small utility library to assist running local scripts on remote servers. Skyrun logs into remote hosts via SSH.
Skyrun is a small node.js utility library to assist running local scripts on remote servers. With Skyrun you can log into a remote server and run a script of any kind (such as bash, node, python etc. Just provide the appropriate hash bang).
At the moment Skyrun only supports logging into remote hosts via ssh public key authentication. Password authentication via ssh is not supported.
var skyrun = require'skyrun';var options ='host':'remote server''user':'user to log in with' // optional. Defaults to root'identity':'private key' // optionalvar server = skyruncreateServeroptions;serverrun'local/path/to/myscript.sh'if stderr// There was an error running the scriptelse// No error. have a look in stdout to see the output of the script;