1.0.3 • Published 7 years ago
ssh-wrapper v1.0.3
SSH Wrapper
Executes a shell command over an SSH connection.
Methods
.exec(obj config, string command)
Executes a command over SSH. Expects a config object:
{
user: 'user',
host: 'host',
[key: 'private/key/file/path']
}
Returns a Promise containing the stdout output, or stderr in case of an error.